mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 07:00:54 +00:00
updated open stream
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
from .utils import encode_uvarint, decode_uvarint
|
from .utils import encode_uvarint, decode_uvarint
|
||||||
from .muxed_connection_interface import IMuxedConn
|
from .muxed_connection_interface import IMuxedConn
|
||||||
from transport.stream.Stream import Stream
|
from .muxed_stream import MuxedStream
|
||||||
|
|
||||||
class MuxedConn(IMuxedConn):
|
class MuxedConn(IMuxedConn):
|
||||||
"""
|
"""
|
||||||
@ -43,7 +43,7 @@ class MuxedConn(IMuxedConn):
|
|||||||
creates a new muxed_stream
|
creates a new muxed_stream
|
||||||
:return: a new stream
|
:return: a new stream
|
||||||
"""
|
"""
|
||||||
stream = Stream(peer_id, multi_addr, self)
|
stream = MuxedStream(peer_id, multi_addr, self)
|
||||||
self.streams[stream_id] = stream
|
self.streams[stream_id] = stream
|
||||||
self.buffers[stream_id] = bytearray()
|
self.buffers[stream_id] = bytearray()
|
||||||
return stream
|
return stream
|
||||||
|
|||||||
Reference in New Issue
Block a user