Skip to content

Commit

Permalink
fix(identify): Remove peer from Behaviour::discovered_peers if a `D…
Browse files Browse the repository at this point in the history
…ialError::LocalPeerId` is encountered
  • Loading branch information
SaadTalaat committed Feb 26, 2025
1 parent ecc1e91 commit ba62330
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protocols/identify/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ impl NetworkBehaviour for Behaviour {
DialError::WrongPeerId {
endpoint: ConnectedPoint::Dialer { address, .. },
..
}
| DialError::LocalPeerId {
endpoint: ConnectedPoint::Dialer { address, .. },
} => {
cache.remove(&peer_id, address);
}
Expand Down

0 comments on commit ba62330

Please sign in to comment.