From ba1ace6cf6edcea58aa904ccf6190155a6ac7c5e Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 21 Jun 2022 16:00:08 +0200 Subject: Block repair with new worker semantics --- src/util/background/worker.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util') 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 => { -- cgit v1.2.3