From 32b749262d305b5ce09d1fc0c02f40023033c9bd Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 12 Jan 2025 22:18:08 +0100 Subject: sha256 -> blake3 --- client/src/download.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src') diff --git a/client/src/download.rs b/client/src/download.rs index 2d61a53..4a47ad9 100644 --- a/client/src/download.rs +++ b/client/src/download.rs @@ -21,7 +21,7 @@ use std::{collections::HashSet, marker::PhantomData, sync::RwLock}; use weareshared::{ helper::ReadWrite, packets::{Packet, Resource}, - store::{ResourceStore, sha256}, + store::{ResourceStore, resource_hash}, }; pub struct Downloader { @@ -69,7 +69,7 @@ impl Downloader { let mut state = self.inner.write().unwrap(); match p { Packet::RespondResource(d) => { - let key = Resource(sha256(&d.0), PhantomData); + let key = Resource(resource_hash(&d.0), PhantomData); state.store.set_raw(&d.0)?; state.need.remove(&key); state.pending.remove(&key); -- cgit v1.2.3-70-g09d2