Skip to content

Commit

Permalink
adjust delay time for rpc call to extract nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed Oct 18, 2023
1 parent 3834032 commit d0b440e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions consumer/src/solana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,10 @@ impl Solana {
.retry(
&ExponentialBuilder::default()
.with_jitter()
.with_min_delay(Duration::from_millis(300))
.with_max_delay(Duration::from_secs(2))
.with_max_times(25),
.with_factor(1.5)
.with_min_delay(Duration::from_millis(1500))
.with_max_delay(Duration::from_secs(3))
.with_max_times(20),
)
.notify(|err: &ClientError, dur: Duration| {
error!("retrying error {:?} in {:?}", err, dur);
Expand Down

0 comments on commit d0b440e

Please sign in to comment.