From c2ebfc8907ee25597b50acacff96f2e470dc2a04 Mon Sep 17 00:00:00 2001 From: Stan Bondi Date: Tue, 14 Sep 2021 12:09:59 +0400 Subject: [PATCH] fix: remove explicit panic from rpc handshake on io error (#3341) Description --- Remove mistaken explicit panic Motivation and Context --- Forgot to remove panic while developing How Has This Been Tested? --- N/A --- comms/src/protocol/rpc/handshake.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/comms/src/protocol/rpc/handshake.rs b/comms/src/protocol/rpc/handshake.rs index 4e07a0294d..198755c198 100644 --- a/comms/src/protocol/rpc/handshake.rs +++ b/comms/src/protocol/rpc/handshake.rs @@ -148,7 +148,6 @@ where T: AsyncRead + AsyncWrite + Unpin target: LOG_TARGET, "IO error when sending new session handshake to peer: {}", err ); - panic!(); } self.framed.flush().await?; match self.recv_next_frame().await {