feat: add start backfill sync fn (#9580)

This commit is contained in:
Matthias Seitz
2024-07-17 18:35:05 +02:00
committed by GitHub
parent e2814406ad
commit 281ecf9627

View File

@@ -59,6 +59,13 @@ where
&mut self.handler
}
/// Triggers a backfill sync for the __valid__ given target.
///
/// CAUTION: This function should be used with care and with a valid target.
pub fn start_backfill_sync(&mut self, target: impl Into<PipelineTarget>) {
self.backfill_sync.on_action(BackfillAction::Start(target.into()));
}
/// Internal function used to advance the chain.
///
/// Polls the `ChainOrchestrator` for the next event.