Remove redundant threadpools in sigverify (#7888)
* Limit the number of thread pools sigverify creates * Name local threadpools
This commit is contained in:
@@ -39,6 +39,7 @@ use thiserror::Error;
|
||||
|
||||
thread_local!(static PAR_THREAD_POOL: RefCell<ThreadPool> = RefCell::new(rayon::ThreadPoolBuilder::new()
|
||||
.num_threads(get_thread_count())
|
||||
.thread_name(|ix| format!("blockstore_processor_{}", ix))
|
||||
.build()
|
||||
.unwrap())
|
||||
);
|
||||
|
Reference in New Issue
Block a user