mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-25 11:21:12 +00:00
fix(sequencer): set block production start delay and missed tick behaviour
This commit is contained in:
@@ -163,11 +163,15 @@ pub async fn run(config: SequencerConfig, listen_addr: SocketAddr) -> Result<Seq
|
||||
|
||||
let scheduler_ref = Scheduler::spawn(Scheduler::new());
|
||||
scheduler_ref
|
||||
.tell(SetInterval::new(
|
||||
executor_ref.downgrade(),
|
||||
block_timeout,
|
||||
sequencer_executor_actor::protocol::ProduceBlock,
|
||||
))
|
||||
.tell(
|
||||
SetInterval::new(
|
||||
executor_ref.downgrade(),
|
||||
block_timeout,
|
||||
sequencer_executor_actor::protocol::ProduceBlock,
|
||||
)
|
||||
.start_delay(block_timeout)
|
||||
.set_missed_tick_behaviour(tokio::time::MissedTickBehavior::Delay),
|
||||
)
|
||||
.await?;
|
||||
info!("Block production scheduler started");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user