From ff6b274f5b0bc88c34a2f5692b8ba2e5ede86ba0 Mon Sep 17 00:00:00 2001 From: shashankshampi Date: Thu, 10 Oct 2024 19:16:04 +0530 Subject: [PATCH] review comment fix --- tests/pubsub/testgossipmembership.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/pubsub/testgossipmembership.nim b/tests/pubsub/testgossipmembership.nim index ef9479005..656037737 100644 --- a/tests/pubsub/testgossipmembership.nim +++ b/tests/pubsub/testgossipmembership.nim @@ -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()