protocols/gossipsub: Emit gossip of all non empty topics (#2481)

Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
Divma
2022-02-07 14:00:46 -05:00
committed by GitHub
parent ab7ed43b4a
commit 78f5981856
2 changed files with 4 additions and 1 deletions

View File

@ -2508,7 +2508,7 @@ where
for (topic_hash, peers) in self.mesh.iter().chain(self.fanout.iter()) {
let mut message_ids = self.mcache.get_gossip_message_ids(topic_hash);
if message_ids.is_empty() {
return;
continue;
}
// if we are emitting more than GossipSubMaxIHaveLength message_ids, truncate the list