mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-22 11:29:18 +02:00
increase timeout in fetching info instances
This commit is contained in:
parent
ebd4d14876
commit
25217ae98f
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue