mirror of
https://github.com/Bluemangoo/sekai-unpacker.git
synced 2026-09-20 00:06:52 +08:00
add concurrent thread config
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user