Skip to content

Commit

Permalink
protocols/gossipsub: Update topic_peers (#2325)
Browse files Browse the repository at this point in the history
Co-authored-by: Max Inden <mail@max-inden.de>
  • Loading branch information
divagant-martian and mxinden committed Nov 3, 2021
1 parent 012287a commit 8b68026
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protocols/gossipsub/CHANGELOG.md
@@ -1,8 +1,11 @@
# 0.33.1 [unreleased]

- Fix bug in internal peer's topics tracking (see [PR 2325]).

- Use `instant` and `futures-timer` instead of `wasm-timer` (see [PR 2245]).

[PR 2245]: https://github.com/libp2p/rust-libp2p/pull/2245
[PR 2325]: https://github.com/libp2p/rust-libp2p/pull/2325

# 0.33.0 [2021-11-01]

Expand Down
4 changes: 4 additions & 0 deletions protocols/gossipsub/src/behaviour.rs
Expand Up @@ -1252,6 +1252,10 @@ where
.entry(*peer_id)
.or_default()
.insert(topic.clone());
self.topic_peers
.entry(topic.clone())
.or_default()
.insert(*peer_id);
}

// we don't GRAFT to/from explicit peers; complain loudly if this happens
Expand Down

0 comments on commit 8b68026

Please sign in to comment.