Skip to content

Commit

Permalink
test: fetch_and to try bit longer
Browse files Browse the repository at this point in the history
  • Loading branch information
akiradeveloper committed May 24, 2024
1 parent d0543a1 commit 9a49b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testapp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ impl Client {
use tokio_retry::strategy::{jitter, ExponentialBackoff};
use tokio_retry::Retry;

// 200ms, 400, 800
// 200ms, 400, 800, 1600, 3200
let strategy = ExponentialBackoff::from_millis(2)
.factor(100)
.map(jitter)
.take(3);
.take(5);

let fut = Retry::spawn(strategy, || {
let mut cli = self.cli.clone();
Expand Down

0 comments on commit 9a49b71

Please sign in to comment.