mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Implement new stream
This commit is contained in:
@ -15,9 +15,10 @@ class INetwork(ABC):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def new_stream(self, peer_id):
|
||||
def new_stream(self, peer_id, protocol_id):
|
||||
"""
|
||||
:param peer_id: peer_id of destination
|
||||
:param protocol_id: protocol id
|
||||
:return: stream instance
|
||||
"""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user