chore: zero-pad thread indices in thread names (#22113)

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Georgios Konstantopoulos
2026-02-12 07:45:49 -05:00
committed by GitHub
parent c915841a45
commit dc4f249f09
3 changed files with 7 additions and 7 deletions

View File

@@ -232,7 +232,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!("rayon-{i}"))
.thread_name(|i| format!("rayon-{i:02}"))
.build_global()
{
warn!(%err, "Failed to build global thread pool")