From 34a4d7b0ede1457af6a9e2834f1a41de6bdfd88a Mon Sep 17 00:00:00 2001 From: mhchia Date: Wed, 28 Aug 2019 21:45:18 +0800 Subject: [PATCH] Add the missing StreamID class --- libp2p/stream_muxer/mplex/datastructures.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 libp2p/stream_muxer/mplex/datastructures.py diff --git a/libp2p/stream_muxer/mplex/datastructures.py b/libp2p/stream_muxer/mplex/datastructures.py new file mode 100644 index 0000000..28a4b41 --- /dev/null +++ b/libp2p/stream_muxer/mplex/datastructures.py @@ -0,0 +1,6 @@ +from typing import NamedTuple + + +class StreamID(NamedTuple): + channel_id: int + is_initiator: bool