derive Clone for the LocalChunkReader

this will be necessary for accessing local pxar behind didx files

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-06-23 12:09:50 +02:00 committed by Dietmar Maurer
parent 4cf0ced950
commit e44fe0c9f5
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ pub trait ReadChunk {
fn read_chunk(&mut self, digest: &[u8; 32]) -> Result<Vec<u8>, Error>;
}
#[derive(Clone)]
pub struct LocalChunkReader {
store: Arc<DataStore>,
crypt_config: Option<Arc<CryptConfig>>,