From: Dietmar Maurer Date: Tue, 2 Jul 2019 06:49:16 +0000 (+0200) Subject: src/backup/read_chunk.rs: use Arc for DataStore X-Git-Tag: v0.1.3~914 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5c593a4d5633acb7f778f1d680296fc6716dfcf5;p=proxmox-backup.git src/backup/read_chunk.rs: use Arc for DataStore --- diff --git a/src/backup/read_chunk.rs b/src/backup/read_chunk.rs index 6d873b39..087d1cf5 100644 --- a/src/backup/read_chunk.rs +++ b/src/backup/read_chunk.rs @@ -12,13 +12,13 @@ pub trait ReadChunk { } pub struct LocalChunkReader { - store: DataStore, + store: Arc, crypt_config: Option>, } impl LocalChunkReader { - pub fn new(store: DataStore, crypt_config: Option>) -> Self { + pub fn new(store: Arc, crypt_config: Option>) -> Self { Self { store, crypt_config } } }