From 72b090864e4a162cc408e95a5db5a7ea51da3a83 Mon Sep 17 00:00:00 2001 From: qwerdvd <2450899274@qq.com> Date: Wed, 11 Oct 2023 14:17:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E6=80=A5=E6=8E=AA=E6=96=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StarRailUID/utils/resource/download_from_cos.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/StarRailUID/utils/resource/download_from_cos.py b/StarRailUID/utils/resource/download_from_cos.py index 534f39e..202c869 100644 --- a/StarRailUID/utils/resource/download_from_cos.py +++ b/StarRailUID/utils/resource/download_from_cos.py @@ -93,11 +93,11 @@ async def download_all_file_from_cos(): download_file( url, res_type, resource_type, name, sess ), - timeout=60, + timeout=600, ) ) # await download_file(url, FILE_TO_PATH[file], name) - if len(TASKS) >= 10: + if len(TASKS) >= 5: await _download(TASKS) await _download(TASKS) if temp_num == 0: @@ -112,10 +112,10 @@ async def download_all_file_from_cos(): TASKS.append( asyncio.wait_for( download_file(url, res_type, resource_type, name, sess), - timeout=60, + timeout=600, ) ) - if len(TASKS) >= 10: + if len(TASKS) >= 5: await _download(TASKS) await _download(TASKS) if count := len(failed_list):