We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 878f143 commit b57f3caCopy full SHA for b57f3ca
rustygear/src/client.rs
@@ -446,13 +446,17 @@ impl Client {
446
handler.call(frame)
447
}
448
};
449
- if let Err(e) = response {
450
- error!("conn dropped?: {}", e);
451
- break;
452
- }
453
- if let Err(_) = tx.send(response.unwrap()).await
454
- {
455
- error!("receiver dropped")
+ match response {
+ Err(e) => {
+ error!("conn dropped?: {}", e);
+ break;
+ }
+ Ok(response) => {
+ if let Err(_) = tx.send(response).await
456
+ {
457
+ error!("receiver dropped")
458
459
460
461
462
reader_conns
0 commit comments