chore: shorten thread names (#21751)

This commit is contained in:
DaniPopes
2026-02-03 17:40:35 +01:00
committed by GitHub
parent 3722071a7c
commit 9621b78586
3 changed files with 7 additions and 3 deletions

View File

@@ -236,7 +236,7 @@ impl LaunchContext {
.map_or(0, |num| num.get().saturating_sub(reserved_cpu_cores).max(1));
if let Err(err) = ThreadPoolBuilder::new()
.num_threads(num_threads)
.thread_name(|i| format!("reth-rayon-{i}"))
.thread_name(|i| format!("rayon-{i}"))
.build_global()
{
warn!(%err, "Failed to build global thread pool")

View File

@@ -540,7 +540,11 @@ where
max_simulate_blocks,
eth_proof_window,
blocking_task_pool.unwrap_or_else(|| {
BlockingTaskPool::build().expect("failed to build blocking task pool")
BlockingTaskPool::builder()
.thread_name(|i| format!("blocking-{i}"))
.build()
.map(BlockingTaskPool::new)
.expect("failed to build blocking task pool")
}),
fee_history_cache,
task_spawner,

View File

@@ -97,7 +97,7 @@ impl TxnManager {
}
}
};
std::thread::Builder::new().name("mdbx-rs-txn-manager".to_string()).spawn(task).unwrap();
std::thread::Builder::new().name("mdbx-rs-txn-mgr".to_string()).spawn(task).unwrap();
}
pub(crate) fn send_message(&self, message: TxnManagerMessage) {