aboutsummaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-03-10 16:23:57 +0100
committerAlex Auvolat <alex@adnab.me>2021-03-10 16:23:57 +0100
commit2afd2c81baacf66f00333de3f0fb18df0b497b41 (patch)
tree484b980f8b663302bbf23663c65ae448be67e3a4 /src/table
parentf319a7d3740ba8b83c9c0eae27edfda1c1d14c03 (diff)
downloadgarage-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.rs2
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())
}
}