Log which workers are doing what

This commit is contained in:
Alex Auvolat
2020-04-19 21:33:38 +00:00
parent ec7f9f07e2
commit 53cf4d1baa
5 changed files with 25 additions and 16 deletions
+3 -1
View File
@@ -391,7 +391,9 @@ impl System {
self.clone()
.background
.spawn_worker(|stop_signal| self.ping_loop(stop_signal).map(Ok))
.spawn_worker(format!("ping loop"), |stop_signal| {
self.ping_loop(stop_signal).map(Ok)
})
.await;
}