Skip to content

Commit 372e0ec

Browse files
committed
fix imports
1 parent 5f1114e commit 372e0ec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

libp2p/kad_dht/kad_dht.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
from libp2p.abc import (
2222
IHost,
2323
)
24-
from libp2p.discovery.random_walk.rt_refresh_manager import RTRefreshManager
2524
from libp2p.custom_types import TProtocol
25+
from libp2p.discovery.random_walk.rt_refresh_manager import RTRefreshManager
2626
from libp2p.kad_dht.utils import maybe_consume_signed_record
2727
from 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,

libp2p/kad_dht/routing_table.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
from .common import (
2828
BUCKET_SIZE,
29+
MAXIMUM_BUCKETS,
2930
PEER_REFRESH_INTERVAL,
3031
PROTOCOL_ID,
3132
STALE_PEER_THRESHOLD,

0 commit comments

Comments
 (0)