Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored and yaahc committed Feb 19, 2021
1 parent 5ec8d09 commit 9d9734e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions zebra-network/src/peer/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,15 +378,11 @@ impl State {
.instrument(span.clone())
.await
{
Either::Left((None, _)) => {
Transition::ExitResponse {
e: PeerError::ConnectionClosed.into(),
tx,
}
}
Either::Left((Some(Err(e)), _)) => {
Transition::ExitResponse { e: e.into(), tx }
}
Either::Left((None, _)) => Transition::ExitResponse {
e: PeerError::ConnectionClosed.into(),
tx,
},
Either::Left((Some(Err(e)), _)) => Transition::ExitResponse { e: e.into(), tx },
Either::Left((Some(Ok(peer_msg)), _cancel)) => {
let request_msg = span.in_scope(|| handler.process_message(peer_msg));
// If the message was not consumed, check whether it
Expand Down

0 comments on commit 9d9734e

Please sign in to comment.