mirror of
https://github.com/permissionlesstech/georelays.git
synced 2026-07-25 22:05:19 +00:00
decrease default timeout to 5 seconds
This commit is contained in:
@@ -60,7 +60,7 @@ class RelayDiscoveryStats:
|
|||||||
class NostrRelayDiscovery:
|
class NostrRelayDiscovery:
|
||||||
"""Nostr relay discovery tool using breadth-first search through follow lists"""
|
"""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.initial_relay = initial_relay
|
||||||
self.max_depth = max_depth
|
self.max_depth = max_depth
|
||||||
self.connection_timeout = connection_timeout
|
self.connection_timeout = connection_timeout
|
||||||
@@ -441,7 +441,7 @@ async def main():
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--timeout",
|
"--timeout",
|
||||||
type=int,
|
type=int,
|
||||||
default=10,
|
default=5,
|
||||||
help="Connection timeout in seconds (default: 10)"
|
help="Connection timeout in seconds (default: 10)"
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|||||||
Reference in New Issue
Block a user