From c8cb375d19036a8df9202dd30b3b053dd45a193d Mon Sep 17 00:00:00 2001 From: mhchia Date: Wed, 10 Jul 2019 17:44:14 +0800 Subject: [PATCH] Make pylint happy Not sure why it fails now, but happy previously. --- libp2p/routing/interfaces.py | 2 +- libp2p/routing/kademlia/kademlia_content_router.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libp2p/routing/interfaces.py b/libp2p/routing/interfaces.py index b519a09..1f29d48 100644 --- a/libp2p/routing/interfaces.py +++ b/libp2p/routing/interfaces.py @@ -28,4 +28,4 @@ class IPeerRouting(ABC): Find specific Peer FindPeer searches for a peer with given peer_id, returns a peer.PeerInfo with relevant addresses. - """ \ No newline at end of file + """ diff --git a/libp2p/routing/kademlia/kademlia_content_router.py b/libp2p/routing/kademlia/kademlia_content_router.py index 60cf55b..ac49be8 100644 --- a/libp2p/routing/kademlia/kademlia_content_router.py +++ b/libp2p/routing/kademlia/kademlia_content_router.py @@ -11,11 +11,9 @@ class KadmeliaContentRouter(IContentRouting): """ # the DHT finds the closest peers to `key` using the `FIND_NODE` RPC # then sends a `ADD_PROVIDER` RPC with its own `PeerInfo` to each of these peers. - pass def find_provider_iter(self, cid, count): """ Search for peers who are able to provide a given key returns an iterator of peer.PeerInfo """ - pass