Skip to content

Commit 4c88676

Browse files
committed
fixup! Add retry strategy to mullvad api
1 parent 0a351dd commit 4c88676

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mullvad-ios/src/api_client/retry_strategy.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub enum RetryDelay {
4747
/// Creates a retry strategy that never retries after failure.
4848
/// The result needs to be consumed.
4949
#[no_mangle]
50-
pub unsafe extern "C" fn mullvad_api_retry_strategy_never() -> SwiftRetryStrategy {
50+
pub extern "C" fn mullvad_api_retry_strategy_never() -> SwiftRetryStrategy {
5151
let retry_strategy = RetryStrategy {
5252
delays: RetryDelay::Never,
5353
max_retries: 0,
@@ -60,7 +60,7 @@ pub unsafe extern "C" fn mullvad_api_retry_strategy_never() -> SwiftRetryStrateg
6060
/// Creates a retry strategy that retries `max_retries` times with a constant delay of `delay_sec`.
6161
/// The result needs to be consumed.
6262
#[no_mangle]
63-
pub unsafe extern "C" fn mullvad_api_retry_strategy_constant(
63+
pub extern "C" fn mullvad_api_retry_strategy_constant(
6464
max_retries: usize,
6565
delay_sec: u64,
6666
) -> SwiftRetryStrategy {
@@ -78,7 +78,7 @@ pub unsafe extern "C" fn mullvad_api_retry_strategy_constant(
7878
/// The delay will never exceed `max_delay_sec`
7979
/// The result needs to be consumed.
8080
#[no_mangle]
81-
pub unsafe extern "C" fn mullvad_api_retry_strategy_exponential(
81+
pub extern "C" fn mullvad_api_retry_strategy_exponential(
8282
max_retries: usize,
8383
initial_sec: u64,
8484
factor: u32,

0 commit comments

Comments
 (0)