diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-11 19:43:29 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-11 19:43:29 +0200 |
commit | dcf58499a4f529e1033de65b4fca8d45458d60d2 (patch) | |
tree | 45cae7a9a1ee240c9e95c9e6591b96ebe679b047 /src/object_table.rs | |
parent | 53289b69e5037700689665b4edf20f2382ff15f6 (diff) | |
download | garage-dcf58499a4f529e1033de65b4fca8d45458d60d2.tar.gz garage-dcf58499a4f529e1033de65b4fca8d45458d60d2.zip |
table::insert_many, version_table::updated
Diffstat (limited to 'src/object_table.rs')
-rw-r--r-- | src/object_table.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/object_table.rs b/src/object_table.rs index 7add9968..63dabf20 100644 --- a/src/object_table.rs +++ b/src/object_table.rs @@ -97,9 +97,7 @@ impl TableFormat for ObjectTable { type S = String; type E = Object; - async fn updated(&self, old: Option<&Self::E>, new: &Self::E) { - let old = old.cloned(); - let new = new.clone(); + async fn updated(&self, old: Option<Self::E>, new: Self::E) { let garage = self.garage.read().await.as_ref().cloned().unwrap(); garage.clone().background.spawn(async move { // Propagate deletion of old versions |