summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-04-27 17:00:59 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-04-28 20:07:55 +0000
commit28bc472d5a425e02ca93dca2a871249b4bdc3a7d (patch)
treec981d87ca3940689a22dd369f30ef9e2da39e504 /mullvad-daemon
parent14177d8368a97779b13d20ec89c8c74869308426 (diff)
downloadmullvadvpn-28bc472d5a425e02ca93dca2a871249b4bdc3a7d.tar.xz
mullvadvpn-28bc472d5a425e02ca93dca2a871249b4bdc3a7d.zip
Use settings directory to store account history
Diffstat (limited to 'mullvad-daemon')
-rw-r--r--mullvad-daemon/src/account_history.rs4
-rw-r--r--mullvad-daemon/src/lib.rs2
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(),
)