diff --git a/rust/main/agents/relayer/src/msg/pending_message.rs b/rust/main/agents/relayer/src/msg/pending_message.rs index 0d8a090c78..dd502e4d03 100644 --- a/rust/main/agents/relayer/src/msg/pending_message.rs +++ b/rust/main/agents/relayer/src/msg/pending_message.rs @@ -657,10 +657,10 @@ impl PendingMessage { let hour: u64 = 60 * 60; // To be extra safe, `max` to make sure it's at least 1 hour. let target = hour.max((num_retries - 47) as u64 * hour); - // Schedule it at some random point in the next hour to + // Schedule it at some random point in the next 6 hours to // avoid scheduling messages with the same # of retries - // at the exact same time. - target + (rand::random::() % hour) + // at the exact same time and starve new messages. + target + (rand::random::() % (6 * hour)) } })) }