aboutsummaryrefslogtreecommitdiff
path: root/src/table/schema.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-14 13:55:11 +0100
committerAlex Auvolat <alex@adnab.me>2022-01-04 12:45:46 +0100
commit5b1117e582db16cc5aa50840a685875cbd5501f4 (patch)
tree06fec47bf56cb08cb51334454dc15f98352c98f2 /src/table/schema.rs
parent8f6026de5ecd44cbe0fc0bcd47638a1ece860439 (diff)
downloadgarage-5b1117e582db16cc5aa50840a685875cbd5501f4.tar.gz
garage-5b1117e582db16cc5aa50840a685875cbd5501f4.zip
New model for buckets
Diffstat (limited to 'src/table/schema.rs')
-rw-r--r--src/table/schema.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/table/schema.rs b/src/table/schema.rs
index fa51fa84..cfe86fba 100644
--- a/src/table/schema.rs
+++ b/src/table/schema.rs
@@ -16,7 +16,7 @@ impl PartitionKey for String {
}
}
-impl PartitionKey for Hash {
+impl PartitionKey for FixedBytes32 {
fn hash(&self) -> Hash {
*self
}
@@ -34,7 +34,7 @@ impl SortKey for String {
}
}
-impl SortKey for Hash {
+impl SortKey for FixedBytes32 {
fn sort_key(&self) -> &[u8] {
self.as_slice()
}