flush on change metadata

This commit is contained in:
2019-05-06 09:34:12 +02:00
parent ee432a0421
commit cfc2ff5886
2 changed files with 7 additions and 1 deletions

View File

@ -165,7 +165,7 @@ impl DataStore {
file.write_all(data)
}
fn flush_metadata(&self) -> io::Result<()> {
pub fn flush_metadata(&self) -> io::Result<()> {
let f = metadata_file::MetadataFile::from_iterator(self.textures.iter());
f.store(self.index_file_path().as_path())