Improve substream management (#3261)

## Issue Addressed

Which issue # does this PR address?

## Proposed Changes

Please list or describe the changes introduced by this PR.

## Additional Info

Please provide any additional information. For example, future considerations
or information useful for reviewers.
This commit is contained in:
Divma
2022-06-10 06:58:50 +00:00
parent 11d80a6a38
commit 3dd50bda11
3 changed files with 35 additions and 29 deletions

View File

@@ -1006,9 +1006,6 @@ where
proto,
error,
} => {
if matches!(error, RPCError::HandlerRejected) {
// this peer's request got canceled
}
// Inform the peer manager of the error.
// An inbound error here means we sent an error to the peer, or the stream
// timed out.