Skip to content

Commit 81a119e

Browse files
committed
fix(identify): Fixes wrong pattern matching for received DialErrors
1 parent 5caf4ae commit 81a119e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

protocols/identify/src/behaviour.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -584,13 +584,8 @@ impl NetworkBehaviour for Behaviour {
584584
cache.remove(&peer_id, addr);
585585
}
586586
}
587-
DialError::WrongPeerId {
588-
endpoint: ConnectedPoint::Dialer { address, .. },
589-
..
590-
}
591-
| DialError::LocalPeerId {
592-
endpoint: ConnectedPoint::Dialer { address, .. },
593-
} => {
587+
DialError::WrongPeerId { address, .. }
588+
| DialError::LocalPeerId { address } => {
594589
cache.remove(&peer_id, address);
595590
}
596591
_ => (),

0 commit comments

Comments
 (0)