File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 21
21
from libp2p .abc import (
22
22
IHost ,
23
23
)
24
- from libp2p .discovery .random_walk .rt_refresh_manager import RTRefreshManager
25
24
from libp2p .custom_types import TProtocol
25
+ from libp2p .discovery .random_walk .rt_refresh_manager import RTRefreshManager
26
26
from libp2p .network .stream .net_stream import (
27
27
INetStream ,
28
28
)
@@ -97,7 +97,8 @@ class KadDHT(Service):
97
97
def __init__ (
98
98
self ,
99
99
host : IHost ,
100
- mode : DHTMode , enable_random_walk : bool = False ,
100
+ mode : DHTMode ,
101
+ enable_random_walk : bool = False ,
101
102
validator : NamespacedValidator | None = None ,
102
103
validator_changed : bool = False ,
103
104
protocol_prefix : TProtocol = PROTOCOL_PREFIX ,
Original file line number Diff line number Diff line change 26
26
27
27
from .common import (
28
28
BUCKET_SIZE ,
29
+ MAXIMUM_BUCKETS ,
29
30
PEER_REFRESH_INTERVAL ,
30
31
PROTOCOL_ID ,
31
32
STALE_PEER_THRESHOLD ,
You can’t perform that action at this time.
0 commit comments