mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 16:21:02 +00:00
Remove from known_collators on disconnect (#2364)
This commit is contained in:
@@ -656,6 +656,7 @@ where
|
|||||||
// want to track it's view or take any other actions.
|
// want to track it's view or take any other actions.
|
||||||
},
|
},
|
||||||
PeerDisconnected(peer_id) => {
|
PeerDisconnected(peer_id) => {
|
||||||
|
state.known_collators.remove(&peer_id);
|
||||||
state.peer_views.remove(&peer_id);
|
state.peer_views.remove(&peer_id);
|
||||||
},
|
},
|
||||||
PeerViewChange(peer_id, view) => {
|
PeerViewChange(peer_id, view) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user