Skip to content

Commit

Permalink
refactor: Rename Interruption -> Continue
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Feb 7, 2024
1 parent 7e721b8 commit 642d7f1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions registry/types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,13 @@ impl From<MatchingRule> for Rule {
#[derive(BorshSerialize, BorshDeserialize, Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum StartBlock {
/// Specific block height to start indexing from
/// Specifies the particular block height from which to start indexing from.
Height(u64),
/// Real-time indexing, always taking the latest finalized block to stream
/// Starts indexing from the most recently finalized block.
Latest,
/// Starts indexing from the block the Indexer was interrupted last time
Interruption,
/// Resumes indexing from the block immediately following the last one successfully indexed
/// prior to update.
Continue,
}

#[derive(BorshSerialize, BorshDeserialize, Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
Expand Down

0 comments on commit 642d7f1

Please sign in to comment.