remove pending gossip and control messages on RemovePeer

This commit is contained in:
vyzo 2018-02-20 18:23:28 +02:00 committed by Steven Allen
parent bd29e81e3a
commit 64cdbbabbc
1 changed files with 2 additions and 0 deletions

View File

@ -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) {