remove pending gossip and control messages on RemovePeer
This commit is contained in:
parent
bd29e81e3a
commit
64cdbbabbc
|
@ -68,6 +68,8 @@ func (gs *GossipSubRouter) RemovePeer(p peer.ID) {
|
|||
for _, peers := range gs.fanout {
|
||||
delete(peers, p)
|
||||
}
|
||||
delete(gs.gossip, p)
|
||||
delete(gs.control, p)
|
||||
}
|
||||
|
||||
func (gs *GossipSubRouter) HandleRPC(rpc *RPC) {
|
||||
|
|
Loading…
Reference in New Issue