diff options
author | Alex Auvolat <alex@adnab.me> | 2023-01-02 13:50:42 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-01-02 13:50:42 +0100 |
commit | 6b857a9b8cd454721a2a1e69e108794be07d36a2 (patch) | |
tree | 1fceca98df1657a92ac50abea6a769629d19dea5 /src/garage/repair/online.rs | |
parent | 1fcd0b371ba1fa94cd6efad5aa9a236b2e58c922 (diff) | |
download | garage-6b857a9b8cd454721a2a1e69e108794be07d36a2.tar.gz garage-6b857a9b8cd454721a2a1e69e108794be07d36a2.zip |
cargo fmt
Diffstat (limited to 'src/garage/repair/online.rs')
-rw-r--r-- | src/garage/repair/online.rs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/garage/repair/online.rs b/src/garage/repair/online.rs index 6e8ec2d3..7120972c 100644 --- a/src/garage/repair/online.rs +++ b/src/garage/repair/online.rs @@ -171,13 +171,14 @@ impl Worker for RepairBlockrefsWorker { } async fn work(&mut self, _must_exit: &mut watch::Receiver<bool>) -> Result<WorkerState, Error> { - let (item_bytes, next_pos) = match self.garage.block_ref_table.data.store.get_gt(&self.pos)? { - Some((k, v)) => (v, k), - None => { - info!("repair_block_ref: finished, done {}", self.counter); - return Ok(WorkerState::Done); - } - }; + let (item_bytes, next_pos) = + match self.garage.block_ref_table.data.store.get_gt(&self.pos)? { + Some((k, v)) => (v, k), + None => { + info!("repair_block_ref: finished, done {}", self.counter); + return Ok(WorkerState::Done); + } + }; let block_ref = rmp_serde::decode::from_read_ref::<_, BlockRef>(&item_bytes)?; if !block_ref.deleted.get() { |