aboutsummaryrefslogtreecommitdiff
path: root/src/garage/repair.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-06 14:02:02 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-06 14:02:02 +0200
commita77efd7ca6a02b9c668607e67efcaeeafd36a8bd (patch)
treec6313bf6fdba527cddc8971d30917ceefda9d6d3 /src/garage/repair.rs
parent7f2cf0b809f1fc5741990e2bfff94dc3ec41a04f (diff)
downloadgarage-a77efd7ca6a02b9c668607e67efcaeeafd36a8bd.tar.gz
garage-a77efd7ca6a02b9c668607e67efcaeeafd36a8bd.zip
Safe choice: revert "Update rmp-serde"
This reverts commit 16e0a655d0d01e3871aee81a0a9660102d6df74e.
Diffstat (limited to 'src/garage/repair.rs')
-rw-r--r--src/garage/repair.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garage/repair.rs b/src/garage/repair.rs
index ae28f351..75828f24 100644
--- a/src/garage/repair.rs
+++ b/src/garage/repair.rs
@@ -81,7 +81,7 @@ impl Repair {
info!("repair_versions: {}", i);
}
- let version = rmp_serde::decode::from_slice::<Version>(&item_bytes)?;
+ let version = rmp_serde::decode::from_read_ref::<_, Version>(&item_bytes)?;
if version.deleted.get() {
continue;
}
@@ -133,7 +133,7 @@ impl Repair {
info!("repair_block_ref: {}", i);
}
- let block_ref = rmp_serde::decode::from_slice::<BlockRef>(&item_bytes)?;
+ let block_ref = rmp_serde::decode::from_read_ref::<_, BlockRef>(&item_bytes)?;
if block_ref.deleted.get() {
continue;
}