Skip to content

Commit e9dda44

Browse files
committed
perf: remove another snapshot flush
1 parent 6fad03d commit e9dda44

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/snapshot/src/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,10 @@ impl Snapshot {
219219
object
220220
.serialize(&mut writer, &self.version_map, self.target_version)
221221
.map_err(Error::Versionize)?;
222-
writer
223-
.flush()
224-
.map_err(|ref err| Error::Io(err.raw_os_error().unwrap_or(libc::EINVAL)))
222+
// writer
223+
// .flush()
224+
// .map_err(|ref err| Error::Io(err.raw_os_error().unwrap_or(libc::EINVAL)))
225+
Ok(())
225226
}
226227

227228
// Returns the current snapshot format version.

0 commit comments

Comments
 (0)