mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
WIP CI Build Errors (#76)
* ignore TODO and kademlia * remove unnecessary pass * fixed swarm warnings * fixed peerdata_interface warnings * fixed peer warnings * fixed rest of linting errors * trying to fix last error * fixed dup errors
This commit is contained in:
@ -7,42 +7,36 @@ class IPeerData(ABC):
|
||||
"""
|
||||
:return: all protocols associated with given peer
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def add_protocols(self, protocols):
|
||||
"""
|
||||
:param protocols: protocols to add
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def set_protocols(self, protocols):
|
||||
"""
|
||||
:param protocols: protocols to add
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def add_addrs(self, addrs):
|
||||
"""
|
||||
:param addrs: multiaddresses to add
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_addrs(self):
|
||||
"""
|
||||
:return: all multiaddresses
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def clear_addrs(self):
|
||||
"""
|
||||
Clear all addresses
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def put_metadata(self, key, val):
|
||||
@ -51,7 +45,6 @@ class IPeerData(ABC):
|
||||
:param val: val to associate with key
|
||||
:raise Exception: unsuccesful put
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_metadata(self, key):
|
||||
@ -60,4 +53,3 @@ class IPeerData(ABC):
|
||||
:return: val for key
|
||||
:raise Exception: key not found
|
||||
"""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user