diff options
| -rw-r--r-- | ios/MullvadVPN/REST/RESTRetryStrategy.swift | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ios/MullvadVPN/REST/RESTRetryStrategy.swift b/ios/MullvadVPN/REST/RESTRetryStrategy.swift index 29732ef8a8..c70e3bfc70 100644 --- a/ios/MullvadVPN/REST/RESTRetryStrategy.swift +++ b/ios/MullvadVPN/REST/RESTRetryStrategy.swift @@ -13,10 +13,13 @@ extension REST { var maxRetryCount: Int var retryDelay: DispatchTimeInterval - /// Strategy configured to never retry + /// Strategy configured to never retry. static var noRetry = RetryStrategy(maxRetryCount: 0, retryDelay: .never) - /// Startegy configured with 3 retry attempts with 2 seconds delay between + /// Startegy configured with 3 retry attempts with 2 seconds delay between. static var `default` = RetryStrategy(maxRetryCount: 3, retryDelay: .seconds(2)) + + /// Strategy configured with 10 retry attempts with 2 seconds delay between. + static var aggressive = RetryStrategy(maxRetryCount: 10, retryDelay: .seconds(2)) } } |
