From 91e162a9b93654e7199d3fcb0e462eff861a3031 Mon Sep 17 00:00:00 2001 From: Ilya Bizyaev Date: Sat, 14 Dec 2024 14:46:57 +0100 Subject: [PATCH] Set a name for dispatcher runtime's threads It defaults to "tokio-runtime-worker", which is not descriptive. --- crates/teloxide/src/dispatching/dispatcher.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/teloxide/src/dispatching/dispatcher.rs b/crates/teloxide/src/dispatching/dispatcher.rs index 56dc5f6e..2fe8216a 100644 --- a/crates/teloxide/src/dispatching/dispatcher.rs +++ b/crates/teloxide/src/dispatching/dispatcher.rs @@ -419,6 +419,7 @@ where scope.spawn(move || { let runtime = tokio::runtime::Builder::new_multi_thread() .thread_stack_size(self.stack_size) + .thread_name("teloxide-dispatcher-worker") .enable_all() .build() .unwrap();