Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/subgraph/runner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ where
match action {
Action::Continue => Ok(RunnerState::AwaitingBlock { block_stream }),
Action::Restart => Ok(RunnerState::Restarting {
reason: RestartReason::DataSourceExpired,
reason: RestartReason::StoreError,
}),
Action::Stop => Ok(RunnerState::Stopped {
reason: StopReason::Canceled,
Expand Down
2 changes: 0 additions & 2 deletions core/src/subgraph/runner/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ pub enum RunnerState<C: Blockchain> {
pub enum RestartReason {
/// New dynamic data source was created that requires filter updates.
DynamicDataSourceCreated,
/// A data source reached its end block.
DataSourceExpired,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is unused since we already have to handle the end block of data sources by just ignoring any matching triggers.

/// Store error occurred and store needs to be restarted.
StoreError,
/// Possible reorg detected, need to restart to detect it.
Expand Down
Loading