You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(peer-store): Remove addresses from peer store on dial failure
When the `MemoryStore` receives a `FromSwarm::DialFailure` event, it will now modify the store appropriately:
- `LocalPeerId`: Remove the peer from the store.
- `WrongPeerId`: Remove the address for the dialed peer ID and readd it for the received peer ID.
- `Transport`: Remove the failed addresses from the store.
- other: no action.
Furthermore, we group some repeated event logic in a new function `push_event_and_wake` for internal use.
Follow-up to #5724
Pull-Request: #5926.
0 commit comments