From 0ea9bcda5f316862b07cf779a17c7a5564ae47e2 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Wed, 15 Nov 2023 12:31:13 +0800 Subject: [PATCH] feat: reduce the minimum number of workers to 1 --- yazi-config/src/tasks/tasks.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yazi-config/src/tasks/tasks.rs b/yazi-config/src/tasks/tasks.rs index 511fd7e72..31028e4dc 100644 --- a/yazi-config/src/tasks/tasks.rs +++ b/yazi-config/src/tasks/tasks.rs @@ -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, }