src/backup/read_chunk.rs: use Arc for DataStore
This commit is contained in:
parent
b850673634
commit
5c593a4d56
@ -12,13 +12,13 @@ pub trait ReadChunk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct LocalChunkReader {
|
pub struct LocalChunkReader {
|
||||||
store: DataStore,
|
store: Arc<DataStore>,
|
||||||
crypt_config: Option<Arc<CryptConfig>>,
|
crypt_config: Option<Arc<CryptConfig>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LocalChunkReader {
|
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 }
|
Self { store, crypt_config }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user