runtime: shorten default thread name to fit in Linux limit (#7880)

Linux thread names are truncated at 15 characters.
Currently, Tokio threads show up as "tokio-runtime-w", whereas
shortening "runtime" to "rt" would make the thread name perfectly fit
in the 15 character limit.
This commit is contained in:
DaniPopes
2026-02-03 16:23:30 +01:00
committed by GitHub
parent f61374f931
commit 187a2146a7
+1 -1
View File
@@ -288,7 +288,7 @@ impl Builder {
max_blocking_threads: 512,
// Default thread name
thread_name: std::sync::Arc::new(|| "tokio-runtime-worker".into()),
thread_name: std::sync::Arc::new(|| "tokio-rt-worker".into()),
// Do not set a stack size by default
thread_stack_size: None,