From ee44423edfa83597411d6f499ae61c2aa2d9ad1f Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 14 Jan 2026 14:13:01 +0800 Subject: Update src-tauri/src/core/downloader.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src-tauri/src/core/downloader.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src-tauri/src') 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, 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())); -- cgit v1.2.3-70-g09d2