src/backup/dynamic_index.rs: split class DynamicIndexWriter

This commit is contained in:
Dietmar Maurer
2019-05-29 08:49:57 +02:00
parent cb0708dd46
commit 976595e1a9
5 changed files with 80 additions and 56 deletions

View File

@ -101,11 +101,10 @@ impl DataStore {
pub fn create_dynamic_writer<P: AsRef<Path>>(
&self, filename: P,
chunk_size: usize
) -> Result<DynamicIndexWriter, Error> {
let index = DynamicIndexWriter::create(
self.chunk_store.clone(), filename.as_ref(), chunk_size)?;
self.chunk_store.clone(), filename.as_ref())?;
Ok(index)
}