Change hash function to blake2 for partition keys based on strings

This commit is contained in:
Alex 2021-03-10 16:23:57 +01:00
parent f319a7d374
commit 2afd2c81ba

View file

@ -10,7 +10,7 @@ pub trait PartitionKey {
impl PartitionKey for String {
fn hash(&self) -> Hash {
sha256sum(self.as_bytes())
blake2sum(self.as_bytes())
}
}