Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
fix: catering qp2p error change
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi authored and Yoga07 committed May 20, 2021
1 parent fcdf30a commit 1747cc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routing/comm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ impl Comm {
.send_to(&recipient.1, bytes)
.await
.map_err(|err| match err {
qp2p::Error::Connection(qp2p::ConnectionError::LocallyClosed) => {
qp2p::Error::Connection(qp2p::ConnectionError::LocallyClosed)
| qp2p::Error::Connection(qp2p::ConnectionError::TimedOut) => {
Error::AddressNotReachable { err }
}
_ => Error::ConnectionClosed,
Expand Down

0 comments on commit 1747cc3

Please sign in to comment.