]> git.proxmox.com Git - proxmox-backup.git/commitdiff
src/backup/read_chunk.rs: use Arc for DataStore
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 2 Jul 2019 06:49:16 +0000 (08:49 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 2 Jul 2019 06:49:16 +0000 (08:49 +0200)
src/backup/read_chunk.rs

index 6d873b39198f56c13584aa28db69b96663fc93e1..087d1cf55fd040cba862108af5aec8ab66f600d7 100644 (file)
@@ -12,13 +12,13 @@ pub trait ReadChunk {
 }
 
 pub struct LocalChunkReader {
-    store: DataStore,
+    store: Arc<DataStore>,
     crypt_config: Option<Arc<CryptConfig>>,
 }
 
 impl LocalChunkReader {
 
-    pub fn new(store: DataStore, crypt_config: Option<Arc<CryptConfig>>) -> Self {
+    pub fn new(store: Arc<DataStore>, crypt_config: Option<Arc<CryptConfig>>) -> Self {
         Self { store, crypt_config }
     }
 }