fix: process packets received and send to quic

This commit is contained in:
Akash Mondal
2025-06-17 08:46:54 +00:00
committed by lla-dane
parent a1d1a07d4c
commit cb6fd27626
6 changed files with 81 additions and 26 deletions

View File

@ -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