summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2023-04-03 11:05:39 +0200
committerDavid Lönnhager <david.l@mullvad.net>2023-04-03 13:14:23 +0200
commit01a9d56cc7802d69a9a1571fc2014e5543fa28e7 (patch)
tree32e80e8ac6dd0e50f185e71856293b27c444d85b /mullvad-daemon/src
parent69b9ae59b7c5e6b528c39388941c248746a91945 (diff)
downloadmullvadvpn-01a9d56cc7802d69a9a1571fc2014e5543fa28e7.tar.xz
mullvadvpn-01a9d56cc7802d69a9a1571fc2014e5543fa28e7.zip
Set retry interval to 24 hours for automatic key rotation
Diffstat (limited to 'mullvad-daemon/src')
-rw-r--r--mullvad-daemon/src/device/service.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/mullvad-daemon/src/device/service.rs b/mullvad-daemon/src/device/service.rs
index 1f574f272f..c1aba7b748 100644
--- a/mullvad-daemon/src/device/service.rs
+++ b/mullvad-daemon/src/device/service.rs
@@ -206,7 +206,7 @@ impl DeviceService {
))
},
should_retry_backoff,
- retry_strategy(),
+ rotate_retry_strategy(),
)
.await
.map_err(map_rest_error)?;
@@ -443,3 +443,7 @@ fn retry_strategy() -> Jittered<ExponentialBackoff> {
.max_delay(RETRY_BACKOFF_INTERVAL_MAX),
)
}
+
+fn rotate_retry_strategy() -> impl Iterator<Item = Duration> {
+ std::iter::repeat(RETRY_BACKOFF_INTERVAL_MAX)
+}