summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-02-16 15:15:03 +0100
committerDavid Lönnhager <david.l@mullvad.net>2022-02-18 09:44:02 +0100
commite1d075ee97f8045d8ef2345eb303d7f36f5e562d (patch)
tree0ed785bf047ecddad57c0ea879517c2fbc4994b6
parent457aec5d1cbde02ea7df51d3a79ae56e51b982df (diff)
downloadmullvadvpn-e1d075ee97f8045d8ef2345eb303d7f36f5e562d.tar.xz
mullvadvpn-e1d075ee97f8045d8ef2345eb303d7f36f5e562d.zip
Remove no-op flushes
-rw-r--r--mullvad-daemon/src/migrations/account_history.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/mullvad-daemon/src/migrations/account_history.rs b/mullvad-daemon/src/migrations/account_history.rs
index e2c0f37c3f..f754f1ac68 100644
--- a/mullvad-daemon/src/migrations/account_history.rs
+++ b/mullvad-daemon/src/migrations/account_history.rs
@@ -67,7 +67,6 @@ pub async fn migrate_formats(settings_dir: &Path, settings: &mut serde_json::Val
file.write_all(token.as_bytes())
.await
.map_err(Error::WriteHistoryError)?;
- file.flush().await.map_err(Error::WriteHistoryError)?;
file.sync_all().await.map_err(Error::WriteHistoryError)?;
Ok(())