mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
chore: shorten thread names (#21751)
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user