diff options
Diffstat (limited to 'client')
-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); |