diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-21 16:00:08 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-21 16:00:08 +0200 |
commit | ba1ace6cf6edcea58aa904ccf6190155a6ac7c5e (patch) | |
tree | e67082848c333fe73117bf7ebcf652817d25e444 /src/util | |
parent | a855c54bdb1a6912e99a6d64ee97bc63c700f29f (diff) | |
download | garage-ba1ace6cf6edcea58aa904ccf6190155a6ac7c5e.tar.gz garage-ba1ace6cf6edcea58aa904ccf6190155a6ac7c5e.zip |
Block repair with new worker semantics
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/background/worker.rs | 3 |
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 => { |