mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 09:21:05 +00:00
Add names to offchain worker threads (#8820)
* Add names to offchain worker threads * Compilation
This commit is contained in:
@@ -94,7 +94,7 @@ impl<Client, Block: traits::Block> OffchainWorkers<Client, Block> {
|
|||||||
Self {
|
Self {
|
||||||
client,
|
client,
|
||||||
_block: PhantomData,
|
_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,
|
shared_client,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user