From 25217ae98ff200927b5c94b475849b0b3ede3df7 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Wed, 28 Jun 2023 23:48:45 +0300 Subject: [PATCH] increase timeout in fetching info instances --- src/fw_instances.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fw_instances.py b/src/fw_instances.py index e651abf..b1faded 100644 --- a/src/fw_instances.py +++ b/src/fw_instances.py @@ -78,7 +78,7 @@ def fetch_instances_nodeinfo_and_avalaibility(instances): headers={ 'Accept-Encoding': 'gzip, brotli, deflate', 'User-Agent': 'funkwhale-cli/latest-commit; +https://git.phreedom.club/localhost_frssoft/funkwhale-cli'}, - timeout=5).json() + timeout=10).json() with concurrent.futures.ThreadPoolExecutor() as executor: # optimally defined number of threads res = [executor.submit(request_nodeinfo, instance) for instance in instances]