diff options
author | Quentin <quentin@deuxfleurs.fr> | 2020-11-21 10:52:27 +0100 |
---|---|---|
committer | Quentin <quentin@deuxfleurs.fr> | 2020-11-21 10:52:27 +0100 |
commit | 2f6eca4ef36b662be841454774af55fe84f42d6a (patch) | |
tree | c6d7b5e5b0bedd66a4c2afacebb32760b5ed924b /src/model/block_ref_table.rs | |
parent | 5b363626f4803b3e43cdb450fd6ee04ac9429c4d (diff) | |
parent | 5dc304ac41c2ae0699fbdd56117b60c517a1ad39 (diff) | |
download | garage-2f6eca4ef36b662be841454774af55fe84f42d6a.tar.gz garage-2f6eca4ef36b662be841454774af55fe84f42d6a.zip |
Merge remote-tracking branch 'origin/master' into feature/website
Diffstat (limited to 'src/model/block_ref_table.rs')
-rw-r--r-- | src/model/block_ref_table.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/block_ref_table.rs b/src/model/block_ref_table.rs index a00438c0..5a7d9aa1 100644 --- a/src/model/block_ref_table.rs +++ b/src/model/block_ref_table.rs @@ -47,7 +47,7 @@ impl TableSchema for BlockRefTable { type P = Hash; type S = UUID; type E = BlockRef; - type Filter = (); + type Filter = DeletedFilter; async fn updated(&self, old: Option<Self::E>, new: Option<Self::E>) -> Result<(), Error> { let block = &old.as_ref().or(new.as_ref()).unwrap().block; @@ -62,7 +62,7 @@ impl TableSchema for BlockRefTable { Ok(()) } - fn matches_filter(entry: &Self::E, _filter: &Self::Filter) -> bool { - !entry.deleted + fn matches_filter(entry: &Self::E, filter: &Self::Filter) -> bool { + filter.apply(entry.deleted) } } |