Skip to content

Commit

Permalink
feat: reduce the minimum number of workers to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Nov 15, 2023
1 parent 24e92d0 commit 0ea9bcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yazi-config/src/tasks/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ use crate::{validation::check_validation, MERGED_YAZI};

#[derive(Debug, Deserialize, Validate)]
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,
#[validate(range(min = 5, message = "Cannot be less than 5"))]
#[validate(range(min = 1, message = "Cannot be less than 1"))]
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,
}

Expand Down

0 comments on commit 0ea9bcd

Please sign in to comment.