diff --git a/src/client/remote_chunk_reader.rs b/src/client/remote_chunk_reader.rs index 2670bf22..06f693a2 100644 --- a/src/client/remote_chunk_reader.rs +++ b/src/client/remote_chunk_reader.rs @@ -15,7 +15,7 @@ pub struct RemoteChunkReader { client: Arc, crypt_config: Option>, crypt_mode: CryptMode, - cache_hint: HashMap<[u8; 32], usize>, + cache_hint: Arc>, cache: Arc>>>, } @@ -33,7 +33,7 @@ impl RemoteChunkReader { client, crypt_config, crypt_mode, - cache_hint, + cache_hint: Arc::new(cache_hint), cache: Arc::new(Mutex::new(HashMap::new())), } }