style: fix flake8 linting errors

This commit is contained in:
Luca Vivona
2025-06-20 11:57:50 -04:00
parent 79ac01308c
commit d03ca45bd8
3 changed files with 3 additions and 4 deletions

View File

@ -7,4 +7,4 @@ ALPHA = 3 # Concurrency parameter
PROTOCOL_ID = TProtocol("/ipfs/kad/1.0.0")
QUERY_TIMEOUT = 10
TTL = DEFAULT_TTL = 24 * 60 * 60 # 24 hours in seconds
TTL = DEFAULT_TTL = 24 * 60 * 60 # 24 hours in seconds

View File

@ -18,9 +18,6 @@ import varint
from libp2p.abc import (
IHost,
)
from libp2p.custom_types import (
TProtocol,
)
from libp2p.network.stream.net_stream import (
INetStream,
)
@ -60,6 +57,7 @@ logger = logging.getLogger("kademlia-example.kad_dht")
# Default parameters
ROUTING_TABLE_REFRESH_INTERVAL = 60 # 1 min in seconds for testing
class DHTMode(Enum):
"""DHT operation modes."""

View File

@ -31,6 +31,7 @@ from .common import (
# logger = logging.getLogger("libp2p.kademlia.value_store")
logger = logging.getLogger("kademlia-example.value_store")
class ValueStore:
"""
Store for key-value pairs in a Kademlia DHT.