Update crates/engine/tree/src/tree/payload_processor/mod.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
YK
2025-10-07 21:29:30 +08:00
committed by GitHub
parent 61ecc9a366
commit 30f6fda3c3

View File

@@ -199,8 +199,7 @@ where
// Default to half of max concurrency, leaving room for on-demand tasks (Accountproof and
// blinded nodes)
let storage_worker_count = (max_proof_task_concurrency / 2)
.max(1)
.min(max_proof_task_concurrency.saturating_sub(1));
.max(1);
let proof_task = match ProofTaskManager::new(
self.executor.handle().clone(),
state_root_config.consistent_view.clone(),