Skip to content

Commit

Permalink
removed PubSub in sunscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankshampi committed Oct 10, 2024
1 parent 567a456 commit cc8e976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/pubsub/testgossipmembership.nim
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ suite "GossipSub Topic Membership Tests":
var peersToUnsubscribe = gossipSub.mesh[topic].toSeq()[0 .. 2]
for peer in peersToUnsubscribe:
echo "Unsubscribing peer: ", peer.peerId
gossipSub.PubSub.unsubscribe(topic, dummyHandler)
gossipSub.unsubscribe(topic, dummyHandler)

# Now assert that 6 peers still remain in the mesh because the mesh retains peers
doAssert gossipSub.mesh[topic].len == 6,
Expand Down

0 comments on commit cc8e976

Please sign in to comment.