From d8ab5bdc3e20759e5ba8a6844393757da3539372 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 22 Dec 2021 18:50:08 +0100 Subject: New buckets for 0.6.0: fix model and migration --- src/table/schema.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/table') diff --git a/src/table/schema.rs b/src/table/schema.rs index cfe86fba..eba918a2 100644 --- a/src/table/schema.rs +++ b/src/table/schema.rs @@ -16,6 +16,9 @@ impl PartitionKey for String { } } +/// Values of type FixedBytes32 are assumed to be random, +/// either a hash or a random UUID. This means we can use +/// them directly as an index into the hash table. impl PartitionKey for FixedBytes32 { fn hash(&self) -> Hash { *self -- cgit v1.2.3