Skip to content

Commit 3514cfb

Browse files
authored
Merge pull request gi-dellav#150 from fayalalebrun/upstream-pr/00-fix-ci-tests
Flush atomic temp files before rename
2 parents 69627ed + 9b22dfc commit 3514cfb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/fs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ pub async fn atomic_write(
6060
let write_result = async {
6161
let mut f = tokio::fs::File::create(&tmp_path).await?;
6262
f.write_all(contents.as_ref()).await?;
63+
f.flush().await?;
6364
Ok::<(), std::io::Error>(())
6465
}
6566
.await;

0 commit comments

Comments
 (0)