MissedTickBehavior::Delay
This commit is contained in:
parent
bb733932b7
commit
17c21bd3b9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user