updated based on comments
parent
d47c423c73
commit
2df8a2c9c2
|
@ -1,7 +1,7 @@
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
# pylint: disable=too-few-public-methods
|
# pylint: disable=too-few-public-methods
|
||||||
|
|
||||||
class IDiscoverer(ABC):
|
class IAdvertiser(ABC):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -12,6 +12,6 @@ class IDiscoverer(ABC):
|
||||||
"""
|
"""
|
||||||
Find peers on the networking providing a particular service
|
Find peers on the networking providing a particular service
|
||||||
:param service: service that peers must provide
|
:param service: service that peers must provide
|
||||||
:return: peerstore containing found peers on the network
|
:return: PeerInfo generator that yields PeerInfo objects for discovered peers
|
||||||
:raise Exception: network error
|
:raise Exception: network error
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue