add concurrent thread config

This commit is contained in:
2026-04-11 11:39:35 +08:00
parent d9461d1ef0
commit 3d5ca3b1f8
5 changed files with 22 additions and 11 deletions
-5
View File
@@ -63,10 +63,6 @@ pub struct ExecutionConfig {
pub proxy: Option<String>,
pub timeout_seconds: u64,
pub allow_cancel: bool,
/// How many successful downloads to accumulate before flushing the download
/// record to disk mid-run. Set to `0` to disable mid-run flushing (record
/// is only written once at the end). Mirrors Go's `batchSaveSize`.
pub batch_save_size: usize,
pub retry: RetryConfig,
}
@@ -76,7 +72,6 @@ impl Default for ExecutionConfig {
proxy: None,
timeout_seconds: 300,
allow_cancel: true,
batch_save_size: 50,
retry: RetryConfig::default(),
}
}