mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 15:40:54 +00:00
Add the missing StreamID class
This commit is contained in:
6
libp2p/stream_muxer/mplex/datastructures.py
Normal file
6
libp2p/stream_muxer/mplex/datastructures.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from typing import NamedTuple
|
||||||
|
|
||||||
|
|
||||||
|
class StreamID(NamedTuple):
|
||||||
|
channel_id: int
|
||||||
|
is_initiator: bool
|
||||||
Reference in New Issue
Block a user