mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Resolved type-checking error in PubSub example test. (#627)
This commit is contained in:
@ -209,8 +209,8 @@ async def ping_demo(host_a, host_b):
|
|||||||
|
|
||||||
|
|
||||||
async def pubsub_demo(host_a, host_b):
|
async def pubsub_demo(host_a, host_b):
|
||||||
gossipsub_a = GossipSub([GOSSIPSUB_PROTOCOL_ID], 3, 2, 4, None, 0.1, 1)
|
gossipsub_a = GossipSub([GOSSIPSUB_PROTOCOL_ID], 3, 2, 4, None, 1, 1)
|
||||||
gossipsub_b = GossipSub([GOSSIPSUB_PROTOCOL_ID], 3, 2, 4, None, 0.1, 1)
|
gossipsub_b = GossipSub([GOSSIPSUB_PROTOCOL_ID], 3, 2, 4, None, 1, 1)
|
||||||
pubsub_a = Pubsub(host_a, gossipsub_a)
|
pubsub_a = Pubsub(host_a, gossipsub_a)
|
||||||
pubsub_b = Pubsub(host_b, gossipsub_b)
|
pubsub_b = Pubsub(host_b, gossipsub_b)
|
||||||
message_a_to_b = "Hello from A to B"
|
message_a_to_b = "Hello from A to B"
|
||||||
|
|||||||
Reference in New Issue
Block a user