mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-12 20:14:09 +00:00
fix gossip tests
This commit is contained in:
parent
4698f41a91
commit
4bcb567d47
@ -168,7 +168,8 @@ proc rebalanceMesh(g: GossipSub, topic: string) {.async.} =
|
|||||||
# send a graft message to the peer
|
# send a graft message to the peer
|
||||||
await p.sendPrune(@[topic])
|
await p.sendPrune(@[topic])
|
||||||
g.mesh[topic].excl(id)
|
g.mesh[topic].excl(id)
|
||||||
g.gossipsub[topic].incl(id)
|
if topic in g.gossipsub:
|
||||||
|
g.gossipsub[topic].incl(id)
|
||||||
|
|
||||||
libp2p_gossipsub_peers_per_topic_gossipsub
|
libp2p_gossipsub_peers_per_topic_gossipsub
|
||||||
.set(g.gossipsub.getOrDefault(topic).len.int64,
|
.set(g.gossipsub.getOrDefault(topic).len.int64,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user