Flush BufWriter before exiting

This commit is contained in:
Joscha 2022-08-10 00:30:34 +02:00
parent 5acb4c6396
commit c6f879c2a5

View file

@ -39,6 +39,7 @@ pub async fn export(vault: &Vault, room: String, file: &Path) -> anyhow::Result<
} }
println!("Exported {exported_trees} trees, {exported_msgs} messages in total"); println!("Exported {exported_trees} trees, {exported_msgs} messages in total");
file.flush()?;
Ok(()) Ok(())
} }