diff options
| -rw-r--r-- | mullvad-daemon/src/device/service.rs | 6 |
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) +} |
