|
|
@ -152,21 +152,23 @@ impl Validator { |
|
|
|
.tree(lag) |
|
|
|
.tree(lag) |
|
|
|
.await |
|
|
|
.await |
|
|
|
.expect("failed to get mailbox tree"); |
|
|
|
.expect("failed to get mailbox tree"); |
|
|
|
let backfill_target = submitter.checkpoint(&tip_tree); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let mut tasks = vec![]; |
|
|
|
let mut tasks = vec![]; |
|
|
|
|
|
|
|
|
|
|
|
let backfill_submitter = submitter.clone(); |
|
|
|
|
|
|
|
let legacy_submitter = submitter.clone(); |
|
|
|
let legacy_submitter = submitter.clone(); |
|
|
|
|
|
|
|
|
|
|
|
tasks.push( |
|
|
|
if tip_tree.count() > 0 { |
|
|
|
tokio::spawn(async move { |
|
|
|
let backfill_target = submitter.checkpoint(&tip_tree); |
|
|
|
backfill_submitter |
|
|
|
let backfill_submitter = submitter.clone(); |
|
|
|
.checkpoint_submitter(empty_tree, Some(backfill_target)) |
|
|
|
tasks.push( |
|
|
|
.await |
|
|
|
tokio::spawn(async move { |
|
|
|
}) |
|
|
|
backfill_submitter |
|
|
|
.instrument(info_span!("BackfillCheckpointSubmitter")), |
|
|
|
.checkpoint_submitter(empty_tree, Some(backfill_target)) |
|
|
|
); |
|
|
|
.await |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.instrument(info_span!("BackfillCheckpointSubmitter")), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tasks.push( |
|
|
|
tasks.push( |
|
|
|
tokio::spawn(async move { submitter.checkpoint_submitter(tip_tree, None).await }) |
|
|
|
tokio::spawn(async move { submitter.checkpoint_submitter(tip_tree, None).await }) |
|
|
|
.instrument(info_span!("TipCheckpointSubmitter")), |
|
|
|
.instrument(info_span!("TipCheckpointSubmitter")), |
|
|
|