Skip to content

Commit 78f5981

Browse files
protocols/gossipsub: Emit gossip of all non empty topics (#2481)
Co-authored-by: Max Inden <[email protected]>
1 parent ab7ed43 commit 78f5981

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

protocols/gossipsub/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
- Move from `open-metrics-client` to `prometheus-client` (see [PR 2442]).
88

9+
- Emit gossip of all non empty topics (see [PR 2481]).
10+
911
[PR 2442]: https://github.com/libp2p/rust-libp2p/pull/2442
12+
[PR 2481]: https://github.com/libp2p/rust-libp2p/pull/2481
1013

1114
# 0.35.0 [2022-01-27]
1215

protocols/gossipsub/src/behaviour.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2508,7 +2508,7 @@ where
25082508
for (topic_hash, peers) in self.mesh.iter().chain(self.fanout.iter()) {
25092509
let mut message_ids = self.mcache.get_gossip_message_ids(topic_hash);
25102510
if message_ids.is_empty() {
2511-
return;
2511+
continue;
25122512
}
25132513

25142514
// if we are emitting more than GossipSubMaxIHaveLength message_ids, truncate the list

0 commit comments

Comments
 (0)