mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Fix IPubsub and add IPubsub.wait_until_ready
This commit is contained in:
@ -245,8 +245,7 @@ class PubsubFactory(factory.Factory):
|
||||
strict_signing=strict_signing,
|
||||
)
|
||||
async with background_trio_service(pubsub):
|
||||
await pubsub.event_handle_peer_queue_started.wait()
|
||||
await pubsub.event_handle_dead_peer_queue_started.wait()
|
||||
await pubsub.wait_until_ready()
|
||||
yield pubsub
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user