diff options
author | Trinity Pointard <trinity.pointard@gmail.com> | 2021-04-06 05:25:28 +0200 |
---|---|---|
committer | Trinity Pointard <trinity.pointard@gmail.com> | 2021-04-06 05:28:47 +0200 |
commit | c8906f200bf907272bf9fba7d183df4332fa085b (patch) | |
tree | 68aea7345bd95761f016976fbf0c183bee1e7092 /src/table | |
parent | 653d3d588f912bcf86b24c456f23d6db0ca755d8 (diff) | |
download | garage-c8906f200bf907272bf9fba7d183df4332fa085b.tar.gz garage-c8906f200bf907272bf9fba7d183df4332fa085b.zip |
make most requested changes
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/lib.rs | 1 | ||||
-rw-r--r-- | src/table/replication/parameters.rs | 1 | ||||
-rw-r--r-- | src/table/schema.rs | 4 |
3 files changed, 2 insertions, 4 deletions
diff --git a/src/table/lib.rs b/src/table/lib.rs index 8dcb115d..c3e14ab8 100644 --- a/src/table/lib.rs +++ b/src/table/lib.rs @@ -1,4 +1,3 @@ -#![warn(missing_docs)] #![recursion_limit = "1024"] #[macro_use] diff --git a/src/table/replication/parameters.rs b/src/table/replication/parameters.rs index 0ab9ee5a..c2c78c8b 100644 --- a/src/table/replication/parameters.rs +++ b/src/table/replication/parameters.rs @@ -16,7 +16,6 @@ pub trait TableReplication: Send + Sync { fn write_nodes(&self, hash: &Hash) -> Vec<UUID>; /// Responses needed to consider a write succesfull fn write_quorum(&self) -> usize; - // this feels like its write_nodes().len() - write_quorum() fn max_write_errors(&self) -> usize; // Accessing partitions, for Merkle tree & sync diff --git a/src/table/schema.rs b/src/table/schema.rs index f5fde95f..c17ccc15 100644 --- a/src/table/schema.rs +++ b/src/table/schema.rs @@ -4,7 +4,7 @@ use garage_util::data::*; use crate::crdt::CRDT; -/// Trait for partitionnable data +/// Trait for field used to partition data pub trait PartitionKey { /// Get the key used to partition fn hash(&self) -> Hash; @@ -22,7 +22,7 @@ impl PartitionKey for Hash { } } -/// Trait for sortable data +/// Trait for field used to sort data pub trait SortKey { /// Get the key used to sort fn sort_key(&self) -> &[u8]; |