fix: try to fix connection id updation

This commit is contained in:
Akash Mondal
2025-06-20 11:52:51 +00:00
committed by lla-dane
parent 6633eb01d4
commit e2fee14bc5
8 changed files with 1305 additions and 79 deletions

View File

@ -9,11 +9,13 @@ from libp2p.transport.quic.stream import QUICStream
if TYPE_CHECKING:
from libp2p.abc import IMuxedConn, IMuxedStream, INetStream, ISecureTransport
from libp2p.transport.quic.connection import QUICConnection
else:
IMuxedConn = cast(type, object)
INetStream = cast(type, object)
ISecureTransport = cast(type, object)
IMuxedStream = cast(type, object)
QUICConnection = cast(type, object)
from libp2p.io.abc import (
ReadWriteCloser,
@ -36,3 +38,4 @@ AsyncValidatorFn = Callable[[ID, rpc_pb2.Message], Awaitable[bool]]
ValidatorFn = Union[SyncValidatorFn, AsyncValidatorFn]
UnsubscribeFn = Callable[[], Awaitable[None]]
TQUICStreamHandlerFn = Callable[[QUICStream], Awaitable[None]]
TQUICConnHandlerFn = Callable[[QUICConnection], Awaitable[None]]