mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-22 17:09:20 +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={
|
headers={
|
||||||
'Accept-Encoding': 'gzip, brotli, deflate',
|
'Accept-Encoding': 'gzip, brotli, deflate',
|
||||||
'User-Agent': 'funkwhale-cli/latest-commit; +https://git.phreedom.club/localhost_frssoft/funkwhale-cli'},
|
'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
|
with concurrent.futures.ThreadPoolExecutor() as executor: # optimally defined number of threads
|
||||||
res = [executor.submit(request_nodeinfo, instance) for instance in instances]
|
res = [executor.submit(request_nodeinfo, instance) for instance in instances]
|
||||||
|
|
Loading…
Reference in New Issue