Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #201 from paritytech/flush
Browse files Browse the repository at this point in the history
flush database after write
  • Loading branch information
snd authored Oct 16, 2018
2 parents d855e10 + bfaef76 commit 84dc540
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bridge/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ impl State {
pub fn write<W: Write>(&self, mut write: W) -> Result<(), Error> {
let serialized = toml::to_string(self).expect("serialization can't fail. q.e.d.");
write.write_all(serialized.as_bytes())?;
write.flush()?;
Ok(())
}
}
Expand Down

0 comments on commit 84dc540

Please sign in to comment.