MissedTickBehavior::Delay

This commit is contained in:
Bryan Stitt 2023-11-06 17:48:55 -08:00
parent bb733932b7
commit 17c21bd3b9

View File

@ -987,7 +987,7 @@ impl Web3Rpc {
// there is a "watch_blocks" function, but a lot of public nodes (including llamanodes) do not support the necessary rpc endpoints
// TODO: is 1/2 the block time okay?
let mut i = interval(self.block_interval / 2);
i.set_missed_tick_behavior(MissedTickBehavior::Skip);
i.set_missed_tick_behavior(MissedTickBehavior::Delay);
loop {
let block_result = self