فهرست منبع

rpc: fix close connection cleanly

Dastan-glitch 3 سال پیش
والد
کامیت
e67e7b25e2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/rpc/server.rs

+ 1 - 1
src/rpc/server.rs

@@ -107,7 +107,7 @@ async fn run_accept_loop(
         let rh_ = rh.clone();
         ex.spawn(async move {
             if let Err(e) = accept(stream, peer_addr.clone(), rh_).await {
-                if e.to_string().as_str() == "Connection closed cleanly" {
+                if e.to_string().as_str() == "Connection closed: Connection closed cleanly" {
                     info!(
                         target: "rpc::server",
                         "[RPC] Closed connection from {}",