From 4cf3117390f6f6d1914c73adb79ae2c1474e3b72 Mon Sep 17 00:00:00 2001 From: gmega Date: Sun, 12 Jan 2025 20:35:26 -0300 Subject: [PATCH] fix: don't use retry in readiness predicate as this makes things too slow --- benchmarks/deluge/deluge_node.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/benchmarks/deluge/deluge_node.py b/benchmarks/deluge/deluge_node.py index fae4058..6c37013 100644 --- a/benchmarks/deluge/deluge_node.py +++ b/benchmarks/deluge/deluge_node.py @@ -131,6 +131,9 @@ def rpc(self) -> DelugeRPCClient: @retry(wait=wait_exponential(multiplier=1, min=4, max=16)) def connect(self) -> Self: + return self._raw_connect() + + def _raw_connect(self): client = DelugeRPCClient(**self.daemon_args) client.connect() self._rpc = client @@ -138,7 +141,7 @@ def connect(self) -> Self: def is_ready(self) -> bool: try: - self.connect() + self._raw_connect() return True except (ConnectionRefusedError, socket.gaierror): return False