From edad693fbbc7499e8b3827fe81c61b2e3f8e97af Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Thu, 14 Nov 2024 19:09:42 +0530 Subject: [PATCH] Cast `--inactive-conn-cleanup-timeout` to float --- proxy/core/work/threadless.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxy/core/work/threadless.py b/proxy/core/work/threadless.py index 7caadbb722..d21976f448 100644 --- a/proxy/core/work/threadless.py +++ b/proxy/core/work/threadless.py @@ -102,7 +102,9 @@ def __init__( SelectableEvents, ] = {} self.wait_timeout: float = DEFAULT_WAIT_FOR_TASKS_TIMEOUT - self.cleanup_inactive_timeout: float = self.flags.inactive_conn_cleanup_timeout + self.cleanup_inactive_timeout: float = float( + self.flags.inactive_conn_cleanup_timeout + ) self._total: int = 0 # When put at the top, causes circular import error # since integrated ssh tunnel was introduced.