mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-25 20:06:53 +00:00
Post review fixes
This commit is contained in:
@@ -93,7 +93,6 @@ pub(crate) mod v09 {
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Clone, Debug, Serialize, Deserialize)]
|
||||
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
|
||||
pub enum VersionBacklink {
|
||||
Object {
|
||||
/// Bucket in which the related object is stored
|
||||
|
||||
@@ -84,11 +84,6 @@ where
|
||||
self.v = new_value;
|
||||
}
|
||||
|
||||
pub fn update2(&mut self, f: impl FnOnce(&mut T), time: u64) {
|
||||
self.ts = std::cmp::max(self.ts + 1, time);
|
||||
f(&mut self.v)
|
||||
}
|
||||
|
||||
/// Get the timestamp currently associated with the value
|
||||
pub fn timestamp(&self) -> u64 {
|
||||
self.ts
|
||||
|
||||
Reference in New Issue
Block a user