mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
feat: reduce the minimum number of workers to 1
This commit is contained in:
parent
24e92d09e5
commit
0ea9bcda5f
1 changed files with 3 additions and 3 deletions
|
|
@ -5,11 +5,11 @@ use crate::{validation::check_validation, MERGED_YAZI};
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Validate)]
|
#[derive(Debug, Deserialize, Validate)]
|
||||||
pub struct Tasks {
|
pub struct Tasks {
|
||||||
#[validate(range(min = 3, message = "Cannot be less than 3"))]
|
#[validate(range(min = 1, message = "Cannot be less than 1"))]
|
||||||
pub micro_workers: u8,
|
pub micro_workers: u8,
|
||||||
#[validate(range(min = 5, message = "Cannot be less than 5"))]
|
#[validate(range(min = 1, message = "Cannot be less than 1"))]
|
||||||
pub macro_workers: u8,
|
pub macro_workers: u8,
|
||||||
#[validate(range(min = 3, message = "Cannot be less than 3"))]
|
#[validate(range(min = 1, message = "Cannot be less than 1"))]
|
||||||
pub bizarre_retry: u8,
|
pub bizarre_retry: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue