From d0b440e5894e6fd55ddcb668d72c6b67546ee8ae Mon Sep 17 00:00:00 2001 From: imabdulbasit Date: Thu, 19 Oct 2023 00:43:04 +0500 Subject: [PATCH] adjust delay time for rpc call to extract nonce --- consumer/src/solana.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/consumer/src/solana.rs b/consumer/src/solana.rs index 8479946..4606830 100644 --- a/consumer/src/solana.rs +++ b/consumer/src/solana.rs @@ -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);