aboutsummaryrefslogtreecommitdiff
path: root/src/membership.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-19 21:33:38 +0000
committerAlex Auvolat <alex@adnab.me>2020-04-19 21:33:38 +0000
commit53cf4d1baaa994544c02ec12f4bea28598720aa8 (patch)
treefef3fc9538e28682b1f91a65f818b7095ef27a16 /src/membership.rs
parentec7f9f07e21ca2771d348b84c6cb14eda64e501c (diff)
downloadgarage-53cf4d1baaa994544c02ec12f4bea28598720aa8.tar.gz
garage-53cf4d1baaa994544c02ec12f4bea28598720aa8.zip
Log which workers are doing what
Diffstat (limited to 'src/membership.rs')
-rw-r--r--src/membership.rs4
1 files changed, 3 insertions, 1 deletions
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;
}