mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Enforce pre-summary newline in docstrings
This commit is contained in:
@ -8,7 +8,8 @@ from libp2p.peer.peerinfo import PeerInfo
|
||||
class IContentRouting(ABC):
|
||||
@abstractmethod
|
||||
def provide(self, cid: bytes, announce: bool = True) -> None:
|
||||
"""Provide adds the given cid to the content routing system.
|
||||
"""
|
||||
Provide adds the given cid to the content routing system.
|
||||
|
||||
If announce is True, it also announces it, otherwise it is just
|
||||
kept in the local accounting of which objects are being
|
||||
|
||||
@ -6,7 +6,8 @@ from libp2p.routing.interfaces import IContentRouting
|
||||
|
||||
class KadmeliaContentRouter(IContentRouting):
|
||||
def provide(self, cid: bytes, announce: bool = True) -> None:
|
||||
"""Provide adds the given cid to the content routing system.
|
||||
"""
|
||||
Provide adds the given cid to the content routing system.
|
||||
|
||||
If announce is True, it also announces it, otherwise it is just
|
||||
kept in the local accounting of which objects are being
|
||||
|
||||
@ -15,7 +15,8 @@ class KadmeliaPeerRouter(IPeerRouting):
|
||||
self.server = dht_server
|
||||
|
||||
async def find_peer(self, peer_id: ID) -> PeerInfo:
|
||||
"""Find a specific peer.
|
||||
"""
|
||||
Find a specific peer.
|
||||
|
||||
:param peer_id: peer to search for
|
||||
:return: PeerInfo of specified peer
|
||||
|
||||
Reference in New Issue
Block a user