mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
lint
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class IHost(ABC):
|
||||
|
||||
@abstractmethod
|
||||
@ -36,9 +37,8 @@ class IHost(ABC):
|
||||
# protocol_id can be a list of protocol_ids
|
||||
# stream will decide which protocol_id to run on
|
||||
@abstractmethod
|
||||
def new_stream(self, context, peer_id, protocol_id):
|
||||
def new_stream(self, peer_id, protocol_id):
|
||||
"""
|
||||
:param context: a context instance
|
||||
:param peer_id: peer_id that host is connecting
|
||||
:param proto_id: protocol id that stream runs on
|
||||
:return: true if successful
|
||||
|
||||
Reference in New Issue
Block a user