mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +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 || {
|
scope.spawn(move || {
|
||||||
let runtime = tokio::runtime::Builder::new_multi_thread()
|
let runtime = tokio::runtime::Builder::new_multi_thread()
|
||||||
.thread_stack_size(self.stack_size)
|
.thread_stack_size(self.stack_size)
|
||||||
|
.thread_name("teloxide-dispatcher-worker")
|
||||||
.enable_all()
|
.enable_all()
|
||||||
.build()
|
.build()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Reference in a new issue