fix: 修改测试IP地址工具的默认超市时间为 0.5s

pull/8725/head
Jiangjie.Bai 2022-08-10 19:00:22 +08:00 committed by Jiangjie.Bai
parent acf8b5798b
commit 795d6e01dc
1 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ def group_by_count(it, count):
return [it[i:i+count] for i in range(0, len(it), count)]
def test_ip_connectivity(host, port, timeout=3):
def test_ip_connectivity(host, port, timeout=0.5):
"""
timeout: seconds
"""
@ -388,4 +388,4 @@ def static_or_direct(logo_path):
if logo_path.startswith('img/'):
return static(logo_path)
else:
return logo_path
return logo_path