mirror of
https://github.com/logos-blockchain/logos-sql-zone.git
synced 2026-06-07 10:19:32 +00:00
fixed sequencer
This commit is contained in:
parent
d4b3044821
commit
db5e5dd37a
@ -119,10 +119,10 @@ impl Sequencer {
|
|||||||
|
|
||||||
let mut batch_handle = handle.clone();
|
let mut batch_handle = handle.clone();
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
batch_handle.wait_ready().await;
|
|
||||||
let mut interval = tokio::time::interval(Duration::from_millis(100));
|
let mut interval = tokio::time::interval(Duration::from_millis(100));
|
||||||
loop {
|
loop {
|
||||||
interval.tick().await;
|
interval.tick().await;
|
||||||
|
batch_handle.wait_ready().await;
|
||||||
if let Err(e) = process_pending_batch(&queue_file, &batch_handle).await {
|
if let Err(e) = process_pending_batch(&queue_file, &batch_handle).await {
|
||||||
error!("Batch processing failed: {e}");
|
error!("Batch processing failed: {e}");
|
||||||
}
|
}
|
||||||
@ -130,7 +130,7 @@ impl Sequencer {
|
|||||||
});
|
});
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let Some(event) = sequencer.next_event().await else { break; };
|
let Some(event) = sequencer.next_event().await else { continue; };
|
||||||
handle_event(event, &handle, &mut state, &checkpoint_path).await;
|
handle_event(event, &handle, &mut state, &checkpoint_path).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user