diff options
author | Alex Auvolat <alex@adnab.me> | 2021-02-23 20:25:15 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-02-23 20:25:15 +0100 |
commit | bf25c95fe2fda4ded2e3ca14499e3991e7243532 (patch) | |
tree | 889ced32b11186e69caba5af740b26de3e3b0659 /src/table/table_sync.rs | |
parent | 28bc967c837c38ba416d9b19fd1ae96cbb292074 (diff) | |
download | garage-bf25c95fe2fda4ded2e3ca14499e3991e7243532.tar.gz garage-bf25c95fe2fda4ded2e3ca14499e3991e7243532.zip |
Make updated() be a sync function that doesn't fail
Diffstat (limited to 'src/table/table_sync.rs')
-rw-r--r-- | src/table/table_sync.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/table/table_sync.rs b/src/table/table_sync.rs index 11b1c211..b81dad86 100644 --- a/src/table/table_sync.rs +++ b/src/table/table_sync.rs @@ -348,14 +348,8 @@ where } // All remote nodes have written those items, now we can delete them locally - for was_removed in join_all( - items - .iter() - .map(|(k, v)| self.table.delete_if_equal(&k[..], &v[..])), - ) - .await - { - was_removed?; + for (k, v) in items.iter() { + self.table.delete_if_equal(&k[..], &v[..])?; } Ok(()) |