File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 7
7
PROTOCOL_ID = TProtocol ("/ipfs/kad/1.0.0" )
8
8
QUERY_TIMEOUT = 10
9
9
10
- TTL = DEFAULT_TTL = 24 * 60 * 60 # 24 hours in seconds
10
+ TTL = DEFAULT_TTL = 24 * 60 * 60 # 24 hours in seconds
Original file line number Diff line number Diff line change 18
18
from libp2p .abc import (
19
19
IHost ,
20
20
)
21
- from libp2p .custom_types import (
22
- TProtocol ,
23
- )
24
21
from libp2p .network .stream .net_stream import (
25
22
INetStream ,
26
23
)
60
57
# Default parameters
61
58
ROUTING_TABLE_REFRESH_INTERVAL = 60 # 1 min in seconds for testing
62
59
60
+
63
61
class DHTMode (Enum ):
64
62
"""DHT operation modes."""
65
63
Original file line number Diff line number Diff line change 31
31
# logger = logging.getLogger("libp2p.kademlia.value_store")
32
32
logger = logging .getLogger ("kademlia-example.value_store" )
33
33
34
+
34
35
class ValueStore :
35
36
"""
36
37
Store for key-value pairs in a Kademlia DHT.
You can’t perform that action at this time.
0 commit comments