src/backup/read_chunk.rs: use Arc for DataStore

This commit is contained in:
Dietmar Maurer 2019-07-02 08:49:16 +02:00
parent b850673634
commit 5c593a4d56

View 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 }
}
}