使用uvloop加速子域请求

This commit is contained in:
Jing Ling
2020-04-28 21:47:17 +08:00
parent 99af838fcb
commit 2fd767fb6f
2 changed files with 15 additions and 0 deletions
+5
View File
@@ -519,6 +519,11 @@ def check_pre():
if version < '3.8':
logger.log('FATAL', 'OneForAll在Windows系统运行时需要Python 3.8以上版本')
exit(1)
if system in {"Linux", "Darwin"}:
try:
import uvloop
except ImportError:
logger.log('ALERT', f'请手动安装uvloop的Python库加速子域请求')
def check_env():