Remove initiator in Mplex

Besides, fix the wrong passed `multi_addr` to `mplex_stream`.
This commit is contained in:
mhchia
2019-08-16 17:01:27 +08:00
parent 8217319c28
commit 7bc363f2fa
3 changed files with 9 additions and 4 deletions

View File

@ -62,6 +62,7 @@ class IMuxedConn(ABC):
Read a message from `stream_id`'s buffer, non-blockingly.
"""
# FIXME: Remove multiaddr from being passed into muxed_conn
@abstractmethod
async def open_stream(
self, protocol_id: str, multi_addr: Multiaddr