mirror of https://github.com/vacp2p/nim-libp2p.git
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
|
||||
await p.sendPrune(@[topic])
|
||||
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
|
||||
.set(g.gossipsub.getOrDefault(topic).len.int64,
|
||||
|
|
Loading…
Reference in New Issue