change some more comments and revert changes on TableSchema

This commit is contained in:
Trinity Pointard
2021-04-07 13:39:34 +02:00
parent c8906f200b
commit 718ae00548
6 changed files with 6 additions and 15 deletions
+2 -6
View File
@@ -57,7 +57,7 @@ impl CRDT for BucketParams {
}
impl BucketParams {
/// Create a new default `BucketParams`
/// Initializes a new instance of the Bucket struct
pub fn new() -> Self {
BucketParams {
authorized_keys: crdt::LWWMap::new(),
@@ -75,7 +75,7 @@ impl Bucket {
}
}
/// Query if bucket is deleted
/// Returns true if this represents a deleted bucket
pub fn is_deleted(&self) -> bool {
*self.state.get() == BucketState::Deleted
}
@@ -113,10 +113,6 @@ impl TableSchema for BucketTable {
type E = Bucket;
type Filter = DeletedFilter;
fn updated(&self, _old: Option<Self::E>, _new: Option<Self::E>) {
// nothing to do when updated
}
fn matches_filter(entry: &Self::E, filter: &Self::Filter) -> bool {
filter.apply(entry.is_deleted())
}