fix: seek back to last offset
parent
7d625648c9
commit
e5e3903771
|
@ -443,6 +443,8 @@ where
|
||||||
let checksum = hasher.finalize();
|
let checksum = hasher.finalize();
|
||||||
w.write_all(&checksum.to_be_bytes())?;
|
w.write_all(&checksum.to_be_bytes())?;
|
||||||
|
|
||||||
|
// seek to last written offset for next caller.
|
||||||
|
w.seek(SeekFrom::Start(offset as u64))?;
|
||||||
Ok(offset)
|
Ok(offset)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue