aboutsummaryrefslogtreecommitdiff
path: root/src/table_sync.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/table_sync.rs
parentec7f9f07e21ca2771d348b84c6cb14eda64e501c (diff)
downloadgarage-53cf4d1baaa994544c02ec12f4bea28598720aa8.tar.gz
garage-53cf4d1baaa994544c02ec12f4bea28598720aa8.zip
Log which workers are doing what
Diffstat (limited to 'src/table_sync.rs')
-rw-r--r--src/table_sync.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/table_sync.rs b/src/table_sync.rs
index 2fb5de77..a750e04e 100644
--- a/src/table_sync.rs
+++ b/src/table_sync.rs
@@ -96,18 +96,20 @@ where
table
.system
.background
- .spawn_worker(move |must_exit: watch::Receiver<bool>| {
- s1.watcher_task(must_exit, busy_rx)
- })
+ .spawn_worker(
+ format!("table sync watcher for {}", table.name),
+ move |must_exit: watch::Receiver<bool>| s1.watcher_task(must_exit, busy_rx),
+ )
.await;
let s2 = syncer.clone();
table
.system
.background
- .spawn_worker(move |must_exit: watch::Receiver<bool>| {
- s2.syncer_task(must_exit, busy_tx)
- })
+ .spawn_worker(
+ format!("table syncer for {}", table.name),
+ move |must_exit: watch::Receiver<bool>| s2.syncer_task(must_exit, busy_tx),
+ )
.await;
syncer