From b3e87bfa47ceb21b2b03698f56a0c5e94afb8f51 Mon Sep 17 00:00:00 2001 From: imabdulbasit Date: Thu, 12 Oct 2023 03:34:47 +0500 Subject: [PATCH] set max delay to 1s --- consumer/src/solana.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/consumer/src/solana.rs b/consumer/src/solana.rs index 5a8f30d..af08e63 100644 --- a/consumer/src/solana.rs +++ b/consumer/src/solana.rs @@ -71,6 +71,7 @@ macro_rules! with_retry { &ExponentialBuilder::default() .with_jitter() .with_min_delay(Duration::from_millis(30)) + .with_max_delay(Duration::from_secs(1)) .with_max_times(25), ) .notify(|err: &ClientError, dur: Duration| {