src/backup/archive_index.rs: use close() instead of flush()

Also pass a reference to the encoder.
This commit is contained in:
Dietmar Maurer
2019-01-02 11:02:56 +01:00
parent 94a882e900
commit 5e7a09be0d
5 changed files with 69 additions and 61 deletions

View File

@ -24,9 +24,6 @@ pub struct Chunker {
discriminator: u32,
window: [u8; CA_CHUNKER_WINDOW_SIZE],
offset: usize, // only used for debug
last_offset: usize, // only used for debug
}
const BUZHASH_TABLE: [u32; 256] = [
@ -122,8 +119,6 @@ impl Chunker {
chunk_size_avg: chunk_size_avg,
discriminator: discriminator,
window: [0u8; CA_CHUNKER_WINDOW_SIZE],
offset: 0,
last_offset: 0,
}
}