This commit is contained in:
teor 2021-02-17 13:37:40 +10:00 committed by Jane Lusby
parent 5ec8d09e0d
commit 9d9734ea81
1 changed files with 5 additions and 9 deletions

View File

@ -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