mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-03-24 22:21:28 +00:00
Change SwarmConn.conn to muxed_conn
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
from typing import Optional
|
||||
|
||||
from libp2p.stream_muxer.abc import IMuxedStream
|
||||
from libp2p.stream_muxer.exceptions import (
|
||||
MuxedStreamClosed,
|
||||
@ -16,7 +18,7 @@ from .net_stream_interface import INetStream
|
||||
class NetStream(INetStream):
|
||||
|
||||
muxed_stream: IMuxedStream
|
||||
protocol_id: TProtocol
|
||||
protocol_id: Optional[TProtocol]
|
||||
|
||||
def __init__(self, muxed_stream: IMuxedStream) -> None:
|
||||
self.muxed_stream = muxed_stream
|
||||
|
||||
Reference in New Issue
Block a user