mirror of
https://github.com/TrueLayer/reqwest-middleware.git
synced 2024-12-26 19:06:31 +00:00
changed the max and min timeout
This commit is contained in:
parent
0038e29c85
commit
64afceea5f
1 changed files with 4 additions and 4 deletions
|
@ -198,8 +198,8 @@ async fn assert_retry_on_request_timeout() {
|
||||||
.with(RetryTransientMiddleware::new_with_policy(
|
.with(RetryTransientMiddleware::new_with_policy(
|
||||||
ExponentialBackoff {
|
ExponentialBackoff {
|
||||||
max_n_retries: 3,
|
max_n_retries: 3,
|
||||||
max_retry_interval: std::time::Duration::from_millis(30),
|
max_retry_interval: std::time::Duration::from_millis(100),
|
||||||
min_retry_interval: std::time::Duration::from_millis(100),
|
min_retry_interval: std::time::Duration::from_millis(30),
|
||||||
backoff_exponent: 2,
|
backoff_exponent: 2,
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
|
@ -244,8 +244,8 @@ async fn assert_retry_on_incomplete_message() {
|
||||||
.with(RetryTransientMiddleware::new_with_policy(
|
.with(RetryTransientMiddleware::new_with_policy(
|
||||||
ExponentialBackoff {
|
ExponentialBackoff {
|
||||||
max_n_retries: 3,
|
max_n_retries: 3,
|
||||||
max_retry_interval: std::time::Duration::from_millis(30),
|
max_retry_interval: std::time::Duration::from_millis(100),
|
||||||
min_retry_interval: std::time::Duration::from_millis(100),
|
min_retry_interval: std::time::Duration::from_millis(30),
|
||||||
backoff_exponent: 2,
|
backoff_exponent: 2,
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in a new issue