Skip to content

Commit

Permalink
Fix panics?
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Jan 18, 2024
1 parent b96b908 commit 7b4c1f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protocols/gossipsub/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1995,6 +1995,9 @@ where

// remove unsubscribed peers from the mesh if it exists
for (peer_id, topic_hash) in unsubscribed_peers {
self.fanout
.get_mut(&topic_hash)
.map(|peers| peers.remove(&peer_id));
self.remove_peer_from_mesh(&peer_id, &topic_hash, None, false, Churn::Unsub);
}

Expand Down

0 comments on commit 7b4c1f9

Please sign in to comment.