rebane ImageIndex to ImageIndexWriter

This commit is contained in:
Dietmar Maurer committed 2018-12-16 11:51:16 +01:00
1 parent 5e5b7f1c2d
commit 798881a68a
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ fn backup_file(param: Value, _info: &ApiMethod) -> Result<Value, Error> {
if stat.st_size <= 0 { bail!("got strange file size '{}'", stat.st_size); }
let size = stat.st_size as usize;
let mut index = ImageIndex::create(&mut chunk_store, "test1.idx".as_ref(), size)?;
let mut index = ImageIndexWriter::create(&mut chunk_store, "test1.idx".as_ref(), size)?;
tools::file_chunker(file, 64*1024, |pos, chunk| {
index.add_chunk(pos, chunk)?;