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 9e92f71
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions registry/types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl From<IndexerConfig> for OldIndexerConfig {
fn from(config: IndexerConfig) -> Self {
let start_block_height = match config.start_block {
StartBlock::Latest => None,
StartBlock::Interruption => None,
StartBlock::Continue => None,
StartBlock::Height(height) => Some(height),
};

Expand Down 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 9e92f71

Please sign in to comment.