From 5c593a4d5633acb7f778f1d680296fc6716dfcf5 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 2 Jul 2019 08:49:16 +0200 Subject: [PATCH] src/backup/read_chunk.rs: use Arc for DataStore --- src/backup/read_chunk.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } }