aboutsummaryrefslogtreecommitdiff
path: root/src/block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/block.rs')
-rw-r--r--src/block.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/block.rs b/src/block.rs
index 11818fd8..81b111ce 100644
--- a/src/block.rs
+++ b/src/block.rs
@@ -107,11 +107,13 @@ impl BlockManager {
pub async fn spawn_background_worker(self: Arc<Self>) {
// Launch 2 simultaneous workers for background resync loop preprocessing
- for _i in 0..2usize {
+ for i in 0..2usize {
let bm2 = self.clone();
self.system
.background
- .spawn_worker(move |must_exit| bm2.resync_loop(must_exit))
+ .spawn_worker(format!("block resync worker {}", i), move |must_exit| {
+ bm2.resync_loop(must_exit)
+ })
.await;
}
}