From eaccde2ddc1d035c69efb5d6f010ca98fd486a2e Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sat, 15 May 2021 14:21:16 +0200 Subject: [PATCH] Add names to offchain worker threads (#8820) * Add names to offchain worker threads * Compilation --- substrate/client/offchain/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/client/offchain/src/lib.rs b/substrate/client/offchain/src/lib.rs index 26975edbd6..9879b85728 100644 --- a/substrate/client/offchain/src/lib.rs +++ b/substrate/client/offchain/src/lib.rs @@ -94,7 +94,7 @@ impl OffchainWorkers { 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, } }