mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-02 21:03:07 +00:00
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…
x
Reference in New Issue
Block a user