aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-12-15 12:48:24 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-12-15 12:48:24 +0100
commit3bc4d57a0f4a600c788a3c7ff51d633d1b7e6f09 (patch)
tree68e6651a31d167723229b3843bf195470a11a8c2 /src/model
parenta3566e49da406db9499a58a754af725a54d332af (diff)
downloadgarage-3bc4d57a0f4a600c788a3c7ff51d633d1b7e6f09.tar.gz
garage-3bc4d57a0f4a600c788a3c7ff51d633d1b7e6f09.zip
First implementation of the CLI
Diffstat (limited to 'src/model')
-rw-r--r--src/model/bucket_table.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/bucket_table.rs b/src/model/bucket_table.rs
index 609490cb..78b0416f 100644
--- a/src/model/bucket_table.rs
+++ b/src/model/bucket_table.rs
@@ -45,7 +45,7 @@ impl CRDT for BucketState {
#[derive(PartialEq, Clone, Debug, Serialize, Deserialize)]
pub struct BucketParams {
pub authorized_keys: crdt::LWWMap<String, PermissionSet>,
- pub website: crdt::LWW<bool>
+ pub website: crdt::LWW<bool>,
}
impl CRDT for BucketParams {
@@ -59,7 +59,7 @@ impl BucketParams {
pub fn new() -> Self {
BucketParams {
authorized_keys: crdt::LWWMap::new(),
- website: crdt::LWW::new(false)
+ website: crdt::LWW::new(false),
}
}
}
@@ -134,10 +134,10 @@ impl TableSchema for BucketTable {
},
));
}
-
+
let params = BucketParams {
authorized_keys: keys,
- website: crdt::LWW::new(false)
+ website: crdt::LWW::new(false),
};
Some(Bucket {