mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +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 {
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user