Skip to content

Commit

Permalink
close request receiving channel on errors immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
altkdf committed Jan 11, 2024
1 parent 006a9f3 commit 876fd47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tarpc/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ where
let _entered = span.enter();
tracing::info!("ReceiveError");
}
self.pending_requests_mut().close();
ChannelError::Read(e)
})
.map_ok(|response| {
Expand Down

0 comments on commit 876fd47

Please sign in to comment.