diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-12 22:18:08 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-12 22:18:08 +0100 |
commit | 32b749262d305b5ce09d1fc0c02f40023033c9bd (patch) | |
tree | 9088d5309febd3102e758b3f82d0eede4b26bac5 /client/src | |
parent | 2731017aa88bf6baaff787d7486d4248f9ca6ca0 (diff) | |
download | weareserver-32b749262d305b5ce09d1fc0c02f40023033c9bd.tar weareserver-32b749262d305b5ce09d1fc0c02f40023033c9bd.tar.bz2 weareserver-32b749262d305b5ce09d1fc0c02f40023033c9bd.tar.zst |
sha256 -> blake3
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/download.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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); |