table::insert_many, version_table::updated

This commit is contained in:
Alex Auvolat
2020-04-11 19:43:29 +02:00
parent 53289b69e5
commit dcf58499a4
6 changed files with 104 additions and 35 deletions
+1 -3
View File
@@ -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