diff options
Diffstat (limited to 'mullvad-daemon/src')
| -rw-r--r-- | mullvad-daemon/src/account_history.rs | 4 | ||||
| -rw-r--r-- | mullvad-daemon/src/lib.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mullvad-daemon/src/account_history.rs b/mullvad-daemon/src/account_history.rs index 56ebc6dc17..6c1688c9f8 100644 --- a/mullvad-daemon/src/account_history.rs +++ b/mullvad-daemon/src/account_history.rs @@ -45,7 +45,7 @@ pub struct AccountHistory { impl AccountHistory { pub fn new( - cache_dir: &Path, + settings_dir: &Path, rpc_handle: MullvadRestHandle, tokio_remote: Remote, ) -> Result<AccountHistory> { @@ -61,7 +61,7 @@ impl AccountHistory { // a share mode of zero ensures exclusive access to the file to *this* process options.share_mode(0); } - let path = cache_dir.join(ACCOUNT_HISTORY_FILE); + let path = settings_dir.join(ACCOUNT_HISTORY_FILE); log::info!("Opening account history file in {}", path.display()); let mut reader = options .write(true) diff --git a/mullvad-daemon/src/lib.rs b/mullvad-daemon/src/lib.rs index f39d6a5a79..ed89f0a114 100644 --- a/mullvad-daemon/src/lib.rs +++ b/mullvad-daemon/src/lib.rs @@ -504,7 +504,7 @@ where } let account_history = account_history::AccountHistory::new( - &cache_dir, + &settings_dir, rpc_handle.clone(), core_handle.remote.clone(), ) |
