Skip to content

Commit

Permalink
Merge pull request #91 from holaplex/abdul/adjust-time
Browse files Browse the repository at this point in the history
adjust delay time for rpc call to extract nonce
  • Loading branch information
imabdulbasit authored Oct 18, 2023
2 parents 11e0e1e + d0b440e commit aeab2f7
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 aeab2f7

Please sign in to comment.