aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorJonathan Davies <jpds@protonmail.com>2023-01-23 22:19:37 +0000
committerJonathan Davies <jpds@protonmail.com>2023-01-26 11:13:11 +0000
commitf952e37ba772b9286ba814ddb29f17d0ec7731c6 (patch)
tree0dd189e0b4a2c834b00019952ccf542960308335 /src/model
parentfbafa76284e35b11b3862c1b8aa7ba85939799d9 (diff)
downloadgarage-f952e37ba772b9286ba814ddb29f17d0ec7731c6.tar.gz
garage-f952e37ba772b9286ba814ddb29f17d0ec7731c6.zip
{model,util}/Cargo.toml: Updated blake2 from 0.9 to 0.10.
Diffstat (limited to 'src/model')
-rw-r--r--src/model/Cargo.toml2
-rw-r--r--src/model/k2v/item_table.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/model/Cargo.toml b/src/model/Cargo.toml
index b47ec195..7c1e242a 100644
--- a/src/model/Cargo.toml
+++ b/src/model/Cargo.toml
@@ -22,7 +22,7 @@ garage_util = { version = "0.8.1", path = "../util" }
async-trait = "0.1.7"
arc-swap = "1.0"
-blake2 = "0.9"
+blake2 = "0.10"
err-derive = "0.3"
hex = "0.4"
base64 = "0.21"
diff --git a/src/model/k2v/item_table.rs b/src/model/k2v/item_table.rs
index ce3e4129..9955a9cd 100644
--- a/src/model/k2v/item_table.rs
+++ b/src/model/k2v/item_table.rs
@@ -173,9 +173,9 @@ impl Crdt for DvvsEntry {
impl PartitionKey for K2VItemPartition {
fn hash(&self) -> Hash {
- use blake2::{Blake2b, Digest};
+ use blake2::{Blake2b512, Digest};
- let mut hasher = Blake2b::new();
+ let mut hasher = Blake2b512::new();
hasher.update(self.bucket_id.as_slice());
hasher.update(self.partition_key.as_bytes());
let mut hash = [0u8; 32];