aboutsummaryrefslogtreecommitdiff
path: root/src/table_sync.rs
diff options
context:
space:
mode:
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