Skip to content

Commit d03ca45

Browse files
committed
style: fix flake8 linting errors
1 parent 79ac013 commit d03ca45

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

libp2p/kad_dht/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
PROTOCOL_ID = TProtocol("/ipfs/kad/1.0.0")
88
QUERY_TIMEOUT = 10
99

10-
TTL = DEFAULT_TTL = 24 * 60 * 60 # 24 hours in seconds
10+
TTL = DEFAULT_TTL = 24 * 60 * 60 # 24 hours in seconds

libp2p/kad_dht/kad_dht.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
from libp2p.abc import (
1919
IHost,
2020
)
21-
from libp2p.custom_types import (
22-
TProtocol,
23-
)
2421
from libp2p.network.stream.net_stream import (
2522
INetStream,
2623
)
@@ -60,6 +57,7 @@
6057
# Default parameters
6158
ROUTING_TABLE_REFRESH_INTERVAL = 60 # 1 min in seconds for testing
6259

60+
6361
class DHTMode(Enum):
6462
"""DHT operation modes."""
6563

libp2p/kad_dht/value_store.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
# logger = logging.getLogger("libp2p.kademlia.value_store")
3232
logger = logging.getLogger("kademlia-example.value_store")
3333

34+
3435
class ValueStore:
3536
"""
3637
Store for key-value pairs in a Kademlia DHT.

0 commit comments

Comments
 (0)