diff options
| author | David Lönnhager <david.l@mullvad.net> | 2022-03-07 09:57:12 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2022-03-14 12:08:55 +0100 |
| commit | 12bb3e056c0ff701314b22efaaa508dbafe51a6f (patch) | |
| tree | 362a7748bdabbb8d7b433bdaf02eb98f62b3c28e | |
| parent | 102ab5f8177a23babe4e2f3f4f986d9e08cbd908 (diff) | |
| download | mullvadvpn-12bb3e056c0ff701314b22efaaa508dbafe51a6f.tar.xz mullvadvpn-12bb3e056c0ff701314b22efaaa508dbafe51a6f.zip | |
Document account manager constants
| -rw-r--r-- | mullvad-daemon/src/device.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mullvad-daemon/src/device.rs b/mullvad-daemon/src/device.rs index 0a078c19f4..ee8e6eecbd 100644 --- a/mullvad-daemon/src/device.rs +++ b/mullvad-daemon/src/device.rs @@ -43,8 +43,10 @@ const RETRY_BACKOFF_INTERVAL_INITIAL: Duration = Duration::from_secs(4); const RETRY_BACKOFF_INTERVAL_FACTOR: u32 = 5; const RETRY_BACKOFF_INTERVAL_MAX: Duration = Duration::from_secs(24 * 60 * 60); +/// How long to keep the known status for [AccountManagerHandle::validate_device]. const VALIDITY_CACHE_TIMEOUT: Duration = Duration::from_secs(10); +/// How long to wait on logout (device removal) before letting it continue as a background task. const LOGOUT_TIMEOUT: Duration = Duration::from_secs(2); #[derive(err_derive::Error, Debug)] |
