diff options
author | Alex Auvolat <alex@adnab.me> | 2021-03-10 16:23:57 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-03-10 16:23:57 +0100 |
commit | 2afd2c81baacf66f00333de3f0fb18df0b497b41 (patch) | |
tree | 484b980f8b663302bbf23663c65ae448be67e3a4 /src/table | |
parent | f319a7d3740ba8b83c9c0eae27edfda1c1d14c03 (diff) | |
download | garage-2afd2c81baacf66f00333de3f0fb18df0b497b41.tar.gz garage-2afd2c81baacf66f00333de3f0fb18df0b497b41.zip |
Change hash function to blake2 for partition keys based on strings
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/schema.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/schema.rs b/src/table/schema.rs index 5b789a02..7fbb7b25 100644 --- a/src/table/schema.rs +++ b/src/table/schema.rs @@ -10,7 +10,7 @@ pub trait PartitionKey { impl PartitionKey for String { fn hash(&self) -> Hash { - sha256sum(self.as_bytes()) + blake2sum(self.as_bytes()) } } |