Skip to content

Commit

Permalink
fix(iroh-sync): Ignore all gossip events that are not for the sync en…
Browse files Browse the repository at this point in the history
…gine
  • Loading branch information
rklaehn committed May 1, 2024
1 parent 4882412 commit b88398e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iroh/src/sync_engine/gossip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ impl GossipActor {
},
};
let namespace: NamespaceId = topic.as_bytes().into();
if !self.joined.contains(&namespace) && !self.want_join.contains(&namespace) {
trace!(namespace = %namespace.fmt_short(), "received gossip event for unknown topic");
return Ok(());
}
if let Err(err) = self.on_gossip_event_inner(namespace, event).await {
error!(namespace = %namespace.fmt_short(), ?err, "Failed to process gossip event");
}
Expand Down

0 comments on commit b88398e

Please sign in to comment.