Skip to content

Commit f5660bc

Browse files
committed
feat: make receipt polling interval configurable
1 parent 9b2f9ae commit f5660bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/executors/priority_executor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const QUOTE_ETH_LOG10_THRESHOLD: usize = 8;
3737
// The number of bps to add to the base bid for each fallback bid
3838
const DEFAULT_FALLBACK_BID_SCALE_FACTOR: u64 = 50;
3939
const CONFIRMATION_TIMEOUT_SEC: u64 = 10;
40+
const RECEIPT_POLL_INTERVAL_MS: u64 = 250;
4041

4142
const UNICHAIN_ID: u64 = 130;
4243

@@ -366,7 +367,7 @@ impl PriorityExecutor {
366367
}
367368
}
368369

369-
tokio::time::sleep(std::time::Duration::from_millis(100)).await;
370+
tokio::time::sleep(std::time::Duration::from_millis(RECEIPT_POLL_INTERVAL_MS)).await;
370371
}
371372

372373
Ok(None)

0 commit comments

Comments
 (0)