mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 06:25:10 +01:00
Set a name for dispatcher runtime's threads
It defaults to "tokio-runtime-worker", which is not descriptive.
This commit is contained in:
parent
94db1757dc
commit
91e162a9b9
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue