@@ -190,7 +190,7 @@ impl EstablishedConn {
190190 debug ! ( self . log, "Received {msg:?}" ) ;
191191 match msg {
192192 WireMsg :: Tq ( msg) => {
193- if let Err ( _ ) = self . main_tx . try_send ( ConnToMainMsg {
193+ if let Err ( e ) = self . main_tx . try_send ( ConnToMainMsg {
194194 task_id : self . task_id ,
195195 msg : ConnToMainMsgInner :: Received {
196196 from : self . peer_id . clone ( ) ,
@@ -201,7 +201,7 @@ impl EstablishedConn {
201201 self . log,
202202 "Failed to send received fsm msg to main task"
203203 ) ;
204- panic ! ( "Connection to main task channel full " ) ;
204+ panic ! ( "Connection to main task channel error: {e:#?} " ) ;
205205 }
206206 }
207207 WireMsg :: Ping => {
@@ -210,7 +210,7 @@ impl EstablishedConn {
210210 }
211211 WireMsg :: NetworkConfig ( config) => {
212212 let generation = config. generation ;
213- if let Err ( _ ) = self . main_tx . try_send ( ConnToMainMsg {
213+ if let Err ( e ) = self . main_tx . try_send ( ConnToMainMsg {
214214 task_id : self . task_id ,
215215 msg : ConnToMainMsgInner :: ReceivedNetworkConfig {
216216 from : self . peer_id . clone ( ) ,
@@ -222,11 +222,11 @@ impl EstablishedConn {
222222 "Failed to send received NetworkConfig with
223223 generation {generation} to main task"
224224 ) ;
225- panic ! ( "Connection to main task channnel full " ) ;
225+ panic ! ( "Connection to main task channel error: {e:#?} " ) ;
226226 }
227227 }
228228 WireMsg :: ProxyRequest ( req) => {
229- if let Err ( _ ) = self . main_tx . try_send ( ConnToMainMsg {
229+ if let Err ( e ) = self . main_tx . try_send ( ConnToMainMsg {
230230 task_id : self . task_id ,
231231 msg : ConnToMainMsgInner :: ProxyRequestReceived {
232232 from : self . peer_id . clone ( ) ,
@@ -235,13 +235,13 @@ impl EstablishedConn {
235235 } ) {
236236 error ! (
237237 self . log,
238- "Failed to send received proxy msg to the main task"
238+ "Failed to send received proxy request to the main task"
239239 ) ;
240- panic ! ( "Connection to main task channel full " ) ;
240+ panic ! ( "Connection to main task channel error: {e:#?} " ) ;
241241 }
242242 }
243243 WireMsg :: ProxyResponse ( rsp) => {
244- if let Err ( _ ) = self . main_tx . try_send ( ConnToMainMsg {
244+ if let Err ( e ) = self . main_tx . try_send ( ConnToMainMsg {
245245 task_id : self . task_id ,
246246 msg : ConnToMainMsgInner :: ProxyResponseReceived {
247247 from : self . peer_id . clone ( ) ,
@@ -250,9 +250,9 @@ impl EstablishedConn {
250250 } ) {
251251 error ! (
252252 self . log,
253- "Failed to send received proxy msg to the main task"
253+ "Failed to send received proxy resposne to the main task"
254254 ) ;
255- panic ! ( "Connection to main task channel full " ) ;
255+ panic ! ( "Connection to main task channel error: {e:#?} " ) ;
256256 }
257257 }
258258 }
0 commit comments