diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-14 15:25:29 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-14 15:25:29 +0100 |
commit | dfc131850a09e7ceacfa98315adbef156e07e9ca (patch) | |
tree | b9684958e211e0dd0389c12a166c9d1af5e8b5f9 /src/block/resync.rs | |
parent | d4af27f920ce48a60f2073e98b17bdf963241686 (diff) | |
download | garage-dfc131850a09e7ceacfa98315adbef156e07e9ca.tar.gz garage-dfc131850a09e7ceacfa98315adbef156e07e9ca.zip |
Simplified and more aggressive worker exit logic
Diffstat (limited to 'src/block/resync.rs')
-rw-r--r-- | src/block/resync.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/block/resync.rs b/src/block/resync.rs index 8231b55d..51bb9846 100644 --- a/src/block/resync.rs +++ b/src/block/resync.rs @@ -540,7 +540,7 @@ impl Worker for ResyncWorker { } } - async fn wait_for_work(&mut self, _must_exit: &watch::Receiver<bool>) -> WorkerState { + async fn wait_for_work(&mut self) -> WorkerState { while self.index >= self.manager.resync.persisted.load().n_workers { self.manager.resync.notify.notified().await } |