From 53cf4d1baaa994544c02ec12f4bea28598720aa8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 19 Apr 2020 21:33:38 +0000 Subject: Log which workers are doing what --- src/membership.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/membership.rs') diff --git a/src/membership.rs b/src/membership.rs index fc21d0b5..193b5936 100644 --- a/src/membership.rs +++ b/src/membership.rs @@ -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; } -- cgit v1.2.3