recompile protobuf schema and remove typos

This commit is contained in:
lla-dane
2025-08-11 09:48:45 +05:30
parent 5ab68026d6
commit a21d9e878b
3 changed files with 2 additions and 3 deletions

View File

@ -364,7 +364,7 @@ class KadDHT(Service):
envelope, _ = consume_envelope(
message.senderRecord, "libp2p-peer-record"
)
# Use the default TTL of 2 hours (72000 seconds)
# Use the default TTL of 2 hours (7200 seconds)
if not self.host.get_peerstore().consume_peer_record(
envelope, 7200
):

View File

@ -361,7 +361,6 @@ class PeerRouting(IPeerRouting):
)
except Exception as e:
print("EXCEPTION CAME")
logger.debug(f"Error querying peer {peer} for closest: {e}")
finally:

View File

@ -86,7 +86,7 @@ async def test_find_node(dht_pair: tuple[KadDHT, KadDHT]):
dht_b.host.get_peerstore().get_peer_record(dht_a.host.get_id()), Envelope
)
# Verifies if the senderRecord in the FIND_NODE response is correctly proccessed
# Verifies if the senderRecord in the FIND_NODE response is correctly processed
assert isinstance(
dht_a.host.get_peerstore().get_peer_record(dht_b.host.get_id()), Envelope
)