increased retry tick duration

This commit is contained in:
Aniket Prajapati 2023-01-02 19:11:15 +05:30
parent a77a17260a
commit 6172a4f4c3
1 changed files with 1 additions and 2 deletions

View File

@ -108,12 +108,11 @@ impl TxSender {
/// retry and confirm transactions every 800ms (avg time to confirm tx)
pub fn execute(self) -> JoinHandle<anyhow::Result<()>> {
let mut interval = tokio::time::interval(Duration::from_millis(20));
let mut interval = tokio::time::interval(Duration::from_millis(800));
#[allow(unreachable_code)]
tokio::spawn(async move {
loop {
info!("{} tx(s) en-queued", self.enqueued_txs.read().await.len());
interval.tick().await;
self.retry_txs().await;
}