From 42e0e8b73f10d6db2e9237c4f6ca42b4605e676c Mon Sep 17 00:00:00 2001 From: lanyeeee <1210347077@qq.com> Date: Tue, 26 Nov 2024 07:20:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=95=A5=E5=BE=AE=E9=99=8D=E4=BD=8E?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/download_manager.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/download_manager.rs b/src-tauri/src/download_manager.rs index 7e3f679..133cedc 100644 --- a/src-tauri/src/download_manager.rs +++ b/src-tauri/src/download_manager.rs @@ -191,8 +191,8 @@ impl DownloadManager { save_path.to_string_lossy().to_string(), // TODO: 把save_path.to_string_lossy().to_string()保存到一个变量里,像current一样 current, ); - // 每下载完一张图片,都休息100-500ms - let sleep_time = rand::thread_rng().gen_range(100..=500); + // 每下载完一张图片,都休息300-800ms + let sleep_time = rand::thread_rng().gen_range(300..=800); tokio::time::sleep(Duration::from_millis(sleep_time)).await; } // 该章节的图片下载完成,释放permit,允许其他章节下载