We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd22075 commit de8072cCopy full SHA for de8072c
sled-storage/src/keyfile.rs
@@ -31,6 +31,7 @@ impl KeyFile {
31
// We want to overwrite any existing contents.
32
let mut file = tokio::fs::File::create(&path.0).await?;
33
file.write_all(key).await?;
34
+ file.flush().await?;
35
info!(log, "Created keyfile"; "path" => ?path);
36
Ok(KeyFile {
37
path,
0 commit comments