Skip to content

Commit

Permalink
feat: add start backfill sync fn
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jul 17, 2024
1 parent 89d0281 commit ba7aede
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/engine/tree/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ba7aede

Please sign in to comment.