Add names to offchain worker threads (#8820)

* Add names to offchain worker threads

* Compilation
This commit is contained in:
Pierre Krieger
2021-05-15 14:21:16 +02:00
committed by GitHub
parent 22c60a63d6
commit eaccde2ddc
+1 -1
View File
@@ -94,7 +94,7 @@ impl<Client, Block: traits::Block> OffchainWorkers<Client, Block> {
Self {
client,
_block: PhantomData,
thread_pool: Mutex::new(ThreadPool::new(num_cpus::get())),
thread_pool: Mutex::new(ThreadPool::with_name("offchain-worker".into(), num_cpus::get())),
shared_client,
}
}