Skip to content

Commit

Permalink
test: reenable test_state_root_task test (#13911)
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Gimenez <[email protected]>
Co-authored-by: Federico Gimenez <[email protected]>
  • Loading branch information
3 people authored Jan 24, 2025
1 parent 203fed0 commit 0cd63cd
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 117 deletions.
5 changes: 1 addition & 4 deletions crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,10 +594,7 @@ where
) -> Self {
let (incoming_tx, incoming) = std::sync::mpsc::channel();

// The thread pool requires at least 2 threads as it contains a long running sparse trie
// task.
let num_threads =
std::thread::available_parallelism().map_or(2, |num| (num.get() / 2).max(2));
let num_threads = root::thread_pool_size();

let state_root_task_pool = Arc::new(
rayon::ThreadPoolBuilder::new()
Expand Down
Loading

0 comments on commit 0cd63cd

Please sign in to comment.