Skip to content

Commit bb3e781

Browse files
committed
fix imports
1 parent c131c82 commit bb3e781

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.network.stream.net_stream import (
2727
INetStream,
2828
)
@@ -97,7 +97,8 @@ class KadDHT(Service):
9797
def __init__(
9898
self,
9999
host: IHost,
100-
mode: DHTMode, enable_random_walk: bool = False,
100+
mode: DHTMode,
101+
enable_random_walk: bool = False,
101102
validator: NamespacedValidator | None = None,
102103
validator_changed: bool = False,
103104
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)