Skip to content

Commit

Permalink
Update crates/engine/tree/src/tree/root.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Roman Krasiuk <[email protected]>
  • Loading branch information
fgimenez and rkrasiuk authored Jan 24, 2025
1 parent 93d135c commit 61f092c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/engine/tree/src/tree/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ where
fn new(thread_pool: Arc<rayon::ThreadPool>, thread_pool_size: usize) -> Self {
// we keep 2 threads to be used internally by [`StateRootTask`]
let max_concurrent = thread_pool_size.saturating_sub(2);
debug_assert!(max_concurrent != 0);
Self {
thread_pool,
max_concurrent,
Expand Down

0 comments on commit 61f092c

Please sign in to comment.