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:
ZX
2018-11-26 18:24:29 -05:00
committed by Alex Haynes
parent 8326f87835
commit 8bcffb67cb
30 changed files with 39 additions and 96 deletions

View File

@ -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