diff --git a/src/command/apply.rs b/src/command/apply.rs index 213cb9c..b7d2972 100644 --- a/src/command/apply.rs +++ b/src/command/apply.rs @@ -192,13 +192,6 @@ pub async fn run(_global_args: &ArgMatches<'_>, local_args: &ArgMatches<'_>) { local_args.value_of("parallel").unwrap().parse::().unwrap() } }); - parallelism_limit.set_build_limit({ - let limit = local_args.value_of("parallel").unwrap().parse::().unwrap(); - if limit == 0 { - panic!("The build parallelism limit must not be 0"); - } - limit - }); deployment.set_parallelism_limit(parallelism_limit); let evaluation_node_limit = match local_args.value_of("eval-node-limit").unwrap() { diff --git a/src/nix/deployment.rs b/src/nix/deployment.rs index 0bcdae1..fe5b53f 100644 --- a/src/nix/deployment.rs +++ b/src/nix/deployment.rs @@ -552,7 +552,7 @@ impl Default for ParallelismLimit { } impl ParallelismLimit { - // Do we actually want this to be configurable? + // Do we actually want them to be configurable? /* /// Sets the concurrent evaluation limit. /// @@ -562,12 +562,12 @@ impl ParallelismLimit { pub fn set_evaluation_limit(&mut self, limit: usize) { self.evaluation = Semaphore::new(limit); } - */ /// Sets the concurrent build limit. pub fn set_build_limit(&mut self, limit: usize) { self.build = Semaphore::new(limit); } + */ /// Sets the concurrent apply limit. pub fn set_apply_limit(&mut self, limit: usize) {