increase timeout in fetching info instances

This commit is contained in:
localhost_frssoft 2023-06-28 23:48:45 +03:00
parent ebd4d14876
commit 25217ae98f

View file

@ -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]