Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Jun 18, 2024
1 parent cb6784a commit 667c98b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/chainhook-cli/src/scan/bitcoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub async fn scan_bitcoin_chainstate_via_rpc_using_predicate(
Ok(kill_signal) => {
// if true, we're received the kill signal, so break out of the loop
if *kill_signal {
return Ok(PredicateScanResult::Derigistered);
return Ok(PredicateScanResult::Deregistered);
}
}
Err(_) => {}
Expand Down
2 changes: 1 addition & 1 deletion components/chainhook-cli/src/scan/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ pub fn get_block_heights_to_scan(
pub enum PredicateScanResult {
ChainTipReached,
Expired,
Derigistered,
Deregistered,
}
2 changes: 1 addition & 1 deletion components/chainhook-cli/src/scan/stacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ pub async fn scan_stacks_chainstate_via_rocksdb_using_predicate(
Ok(kill_signal) => {
// if true, we're received the kill signal, so break out of the loop
if *kill_signal {
return Ok(PredicateScanResult::Derigistered);
return Ok(PredicateScanResult::Deregistered);
}
}
Err(_) => {}
Expand Down
4 changes: 2 additions & 2 deletions components/chainhook-cli/src/service/runloops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub fn start_stacks_scan_runloop(
let res = hiro_system_kit::nestable_block_on(op);
match res {
Ok(PredicateScanResult::Expired)
| Ok(PredicateScanResult::Derigistered) => {}
| Ok(PredicateScanResult::Deregistered) => {}
Ok(PredicateScanResult::ChainTipReached) => {
let _ = observer_command_tx.send(ObserverCommand::EnablePredicate(
ChainhookSpecification::Stacks(predicate_spec),
Expand Down Expand Up @@ -168,7 +168,7 @@ pub fn start_bitcoin_scan_runloop(

match hiro_system_kit::nestable_block_on(op) {
Ok(PredicateScanResult::Expired)
| Ok(PredicateScanResult::Derigistered) => {}
| Ok(PredicateScanResult::Deregistered) => {}
Ok(PredicateScanResult::ChainTipReached) => {
let _ = observer_command_tx.send(ObserverCommand::EnablePredicate(
ChainhookSpecification::Bitcoin(predicate_spec),
Expand Down

0 comments on commit 667c98b

Please sign in to comment.