summaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri/src
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2026-01-14 14:13:01 +0800
committerGitHub <noreply@github.com>2026-01-14 14:13:01 +0800
commitee44423edfa83597411d6f499ae61c2aa2d9ad1f (patch)
tree1dad694c360a52a8a1f0e8671fa55d1235c9ab89 /src-tauri/src
parent1f13026ec0f023c7762d7a9744ea5d9fbe911a53 (diff)
downloadDropOut-ee44423edfa83597411d6f499ae61c2aa2d9ad1f.tar.gz
DropOut-ee44423edfa83597411d6f499ae61c2aa2d9ad1f.zip
Update src-tauri/src/core/downloader.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Diffstat (limited to 'src-tauri/src')
-rw-r--r--src-tauri/src/core/downloader.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src-tauri/src/core/downloader.rs b/src-tauri/src/core/downloader.rs
index 139b621..d792167 100644
--- a/src-tauri/src/core/downloader.rs
+++ b/src-tauri/src/core/downloader.rs
@@ -105,10 +105,7 @@ pub async fn download_files(window: Window, tasks: Vec<DownloadTask>, max_concur
// Clamp max_concurrent to a valid range (1-128) to prevent edge cases
let max_concurrent = max_concurrent.clamp(1, 128);
- let client = reqwest::Client::builder()
- .pool_max_idle_per_host(max_concurrent)
- .build()
- .map_err(|e| e.to_string())?;
+ let client = reqwest::Client::new();
let semaphore = Arc::new(Semaphore::new(max_concurrent));
let progress = Arc::new(GlobalProgress::new(tasks.len()));