From d049474ec4c79a296a4763d8a30b2f21bd7f6385 Mon Sep 17 00:00:00 2001 From: lollerfirst Date: Sun, 24 Aug 2025 23:27:26 +0200 Subject: [PATCH] decrease default timeout to 5 seconds --- nostr_relay_discovery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nostr_relay_discovery.py b/nostr_relay_discovery.py index 371f49e..fdd4db8 100644 --- a/nostr_relay_discovery.py +++ b/nostr_relay_discovery.py @@ -60,7 +60,7 @@ class RelayDiscoveryStats: class NostrRelayDiscovery: """Nostr relay discovery tool using breadth-first search through follow lists""" - def __init__(self, initial_relay: str, max_depth: int = 3, connection_timeout: int = 10, output_file: str = "relay_discovery_results.json", save_point: int = SAVE_POINT): + def __init__(self, initial_relay: str, max_depth: int = 3, connection_timeout: int = 5, output_file: str = "relay_discovery_results.json", save_point: int = SAVE_POINT): self.initial_relay = initial_relay self.max_depth = max_depth self.connection_timeout = connection_timeout @@ -441,7 +441,7 @@ async def main(): parser.add_argument( "--timeout", type=int, - default=10, + default=5, help="Connection timeout in seconds (default: 10)" ) parser.add_argument(