aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-21 16:00:08 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-21 16:00:08 +0200
commitba1ace6cf6edcea58aa904ccf6190155a6ac7c5e (patch)
treee67082848c333fe73117bf7ebcf652817d25e444 /src/util
parenta855c54bdb1a6912e99a6d64ee97bc63c700f29f (diff)
downloadgarage-ba1ace6cf6edcea58aa904ccf6190155a6ac7c5e.tar.gz
garage-ba1ace6cf6edcea58aa904ccf6190155a6ac7c5e.zip
Block repair with new worker semantics
Diffstat (limited to 'src/util')
-rw-r--r--src/util/background/worker.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/background/worker.rs b/src/util/background/worker.rs
index 92f7990c..e30fecd7 100644
--- a/src/util/background/worker.rs
+++ b/src/util/background/worker.rs
@@ -159,6 +159,9 @@ impl WorkerHandler {
self.task_id,
e
);
+ // Sleep a bit so that error won't repeat immediately
+ // (TODO good way to handle errors)
+ tokio::time::sleep(Duration::from_secs(10)).await;
}
},
WorkerStatus::Idle => {