From 43f55136b6dfca56638bf54da818e979b4b2289f Mon Sep 17 00:00:00 2001 From: John Spray Date: Sun, 1 Dec 2024 18:01:57 +0000 Subject: [PATCH] DNM: reduce max optimisations to simplify testing --- storage_controller/src/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage_controller/src/service.rs b/storage_controller/src/service.rs index 242451e9dd..77615eadc9 100644 --- a/storage_controller/src/service.rs +++ b/storage_controller/src/service.rs @@ -6109,7 +6109,7 @@ impl Service { // How many candidate optimizations we will generate, before evaluating them for readniess: setting // this higher than the execution limit gives us a chance to execute some work even if the first // few optimizations we find are not ready. - const MAX_OPTIMIZATIONS_PLAN_PER_PASS: usize = 8; + const MAX_OPTIMIZATIONS_PLAN_PER_PASS: usize = 2; let mut work = Vec::new(); let mut locked = self.inner.write().unwrap();