mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 15:40:54 +00:00
fix: process packets received and send to quic
This commit is contained in:
@ -3,6 +3,7 @@ from collections.abc import (
|
||||
Callable,
|
||||
)
|
||||
import logging
|
||||
import sys
|
||||
|
||||
from multiaddr import (
|
||||
Multiaddr,
|
||||
@ -56,6 +57,11 @@ from .exceptions import (
|
||||
SwarmException,
|
||||
)
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
format="%(asctime)s [%(levelname)s] %(message)s",
|
||||
handlers=[logging.StreamHandler(sys.stdout)],
|
||||
)
|
||||
logger = logging.getLogger("libp2p.network.swarm")
|
||||
|
||||
|
||||
@ -245,6 +251,7 @@ class Swarm(Service, INetworkService):
|
||||
- Map multiaddr to listener
|
||||
"""
|
||||
# We need to wait until `self.listener_nursery` is created.
|
||||
logger.debug("SWARM LISTEN CALLED")
|
||||
await self.event_listener_nursery_created.wait()
|
||||
|
||||
success_count = 0
|
||||
|
||||
Reference in New Issue
Block a user