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 2121from libp2p .abc import (
2222 IHost ,
2323)
24- from libp2p .discovery .random_walk .rt_refresh_manager import RTRefreshManager
2524from libp2p .custom_types import TProtocol
25+ from libp2p .discovery .random_walk .rt_refresh_manager import RTRefreshManager
2626from libp2p .kad_dht .utils import maybe_consume_signed_record
2727from libp2p .network .stream .net_stream import (
2828 INetStream ,
@@ -100,7 +100,8 @@ class KadDHT(Service):
100100 def __init__ (
101101 self ,
102102 host : IHost ,
103- mode : DHTMode , enable_random_walk : bool = False ,
103+ mode : DHTMode ,
104+ enable_random_walk : bool = False ,
104105 validator : NamespacedValidator | None = None ,
105106 validator_changed : bool = False ,
106107 protocol_prefix : TProtocol = PROTOCOL_PREFIX ,
Original file line number Diff line number Diff line change 2626
2727from .common import (
2828 BUCKET_SIZE ,
29+ MAXIMUM_BUCKETS ,
2930 PEER_REFRESH_INTERVAL ,
3031 PROTOCOL_ID ,
3132 STALE_PEER_THRESHOLD ,
You can’t perform that action at this time.
0 commit comments