Skip to content

Commit 3ed5ec7

Browse files
committed
fix(identify): Fixes wrong pattern matching for received DialErrors
1 parent e3b1fb3 commit 3ed5ec7

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
@@ -603,13 +603,8 @@ impl NetworkBehaviour for Behaviour {
603603
cache.remove(&peer_id, addr);
604604
}
605605
}
606-
DialError::WrongPeerId {
607-
endpoint: ConnectedPoint::Dialer { address, .. },
608-
..
609-
}
610-
| DialError::LocalPeerId {
611-
endpoint: ConnectedPoint::Dialer { address, .. },
612-
} => {
606+
DialError::WrongPeerId { address, .. }
607+
| DialError::LocalPeerId { address } => {
613608
cache.remove(&peer_id, address);
614609
}
615610
_ => (),

0 commit comments

Comments
 (0)