mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 06:30:53 +00:00
Add mplex tests and fix error in SwarmConn.close
This commit is contained in:
@ -29,9 +29,6 @@ class Mplex(IMuxedConn):
|
||||
|
||||
secured_conn: ISecureConn
|
||||
peer_id: ID
|
||||
# TODO: `dataIn` in go implementation. Should be size of 8.
|
||||
# TODO: Also, `dataIn` is closed indicating EOF in Go. We don't have similar strategies
|
||||
# to let the `MplexStream`s know that EOF arrived (#235).
|
||||
next_channel_id: int
|
||||
streams: Dict[StreamID, MplexStream]
|
||||
streams_lock: asyncio.Lock
|
||||
|
||||
@ -24,6 +24,7 @@ class MplexStream(IMuxedStream):
|
||||
|
||||
close_lock: asyncio.Lock
|
||||
|
||||
# NOTE: `dataIn` is size of 8 in Go implementation.
|
||||
incoming_data: "asyncio.Queue[bytes]"
|
||||
|
||||
event_local_closed: asyncio.Event
|
||||
|
||||
Reference in New Issue
Block a user