mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-03-03 14:00:32 +00:00
review comment fix
This commit is contained in:
parent
d594c049b8
commit
ff6b274f5b
@ -157,7 +157,7 @@ suite "GossipSub Topic Membership Tests":
|
||||
|
||||
for topic in topicNames:
|
||||
if gossipSub.topics.len < gossipSub.topicsHigh:
|
||||
gossipSub.PubSub.subscribe(
|
||||
gossipSub.subscribe(
|
||||
topic,
|
||||
proc(topic: string, data: seq[byte]): Future[void] {.async.} =
|
||||
discard
|
||||
@ -172,6 +172,5 @@ suite "GossipSub Topic Membership Tests":
|
||||
doAssert gossipSub.topics.len <= gossipSub.topicsHigh
|
||||
doAssert gossipSub.topics.len == gossipSub.topicsHigh
|
||||
|
||||
# Clean up by closing connections and stopping the GossipSub switch
|
||||
await allFuturesThrowing(conns.mapIt(it.close()))
|
||||
await gossipSub.switch.stop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user