From 817325f3417e18421c4b398d30998b41096cc7e5 Mon Sep 17 00:00:00 2001 From: Dominik Muhs Date: Tue, 29 Oct 2019 18:22:13 +0100 Subject: [PATCH] Fix docstring list in KademliaProtocol --- libp2p/kademlia/protocol.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/libp2p/kademlia/protocol.py b/libp2p/kademlia/protocol.py index 419e41c..59f4206 100644 --- a/libp2p/kademlia/protocol.py +++ b/libp2p/kademlia/protocol.py @@ -11,11 +11,16 @@ log = logging.getLogger(__name__) class KademliaProtocol(RPCProtocol): - """There are four main RPCs in the Kademlia protocol PING, STORE, - FIND_NODE, FIND_VALUE PING probes if a node is still online STORE instructs - a node to store (key, value) FIND_NODE takes a 160-bit ID and gets back - (ip, udp_port, node_id) for k closest nodes to target FIND_VALUE behaves - like FIND_NODE unless a value is stored.""" + """ + There are four main RPCs in the Kademlia protocol PING, STORE, FIND_NODE, + FIND_VALUE. + + - PING probes if a node is still online + - STORE instructs a node to store (key, value) + - FIND_NODE takes a 160-bit ID and gets back + (ip, udp_port, node_id) for k closest nodes to target + - FIND_VALUE behaves like FIND_NODE unless a value is stored. + """ def __init__(self, source_node, storage, ksize): RPCProtocol.__init__(self)