diff options
author | Quentin <quentin@deuxfleurs.fr> | 2020-11-21 17:50:19 +0100 |
---|---|---|
committer | Quentin <quentin@deuxfleurs.fr> | 2020-11-21 17:50:19 +0100 |
commit | a88fd49f71844f04013970a678201a65ab89fb19 (patch) | |
tree | 871473ffde04ba437f0681482a0d76793bb1ef39 /src/table | |
parent | 78be2b363f6747f8dae9c8c86e96c88ae8a054b3 (diff) | |
download | garage-a88fd49f71844f04013970a678201a65ab89fb19.tar.gz garage-a88fd49f71844f04013970a678201a65ab89fb19.zip |
Use handle_get
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/lib.rs | 2 | ||||
-rw-r--r-- | src/table/schema.rs | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/table/lib.rs b/src/table/lib.rs index 7684fe9d..a10f78c2 100644 --- a/src/table/lib.rs +++ b/src/table/lib.rs @@ -12,5 +12,5 @@ pub mod table_sharded; pub mod table_sync; pub use schema::*; -pub use util::*; pub use table::*; +pub use util::*; diff --git a/src/table/schema.rs b/src/table/schema.rs index 49cede0a..d2ec9450 100644 --- a/src/table/schema.rs +++ b/src/table/schema.rs @@ -20,7 +20,6 @@ impl PartitionKey for Hash { } } - pub trait SortKey { fn sort_key(&self) -> &[u8]; } @@ -37,7 +36,6 @@ impl SortKey for Hash { } } - pub trait Entry<P: PartitionKey, S: SortKey>: PartialEq + Clone + Serialize + for<'de> Deserialize<'de> + Send + Sync { @@ -47,7 +45,6 @@ pub trait Entry<P: PartitionKey, S: SortKey>: fn merge(&mut self, other: &Self); } - #[async_trait] pub trait TableSchema: Send + Sync { type P: PartitionKey + Clone + PartialEq + Serialize + for<'de> Deserialize<'de> + Send + Sync; @@ -66,4 +63,3 @@ pub trait TableSchema: Send + Sync { true } } - |