Skip to content

Commit

Permalink
Change the wrong 'Child' and 'Auxiliary' usage (#9033)
Browse files Browse the repository at this point in the history
  • Loading branch information
leniram159 committed Jun 23, 2024
1 parent 572d4c1 commit 97de9d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/blockchain-tree/src/blockchain_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ where
}
});

durations_recorder.record_relative(MakeCanonicalAction::ClearTrieUpdatesForOtherChilds);
durations_recorder.record_relative(MakeCanonicalAction::ClearTrieUpdatesForOtherChildren);

// Send notification about new canonical chain and return outcome of canonicalization.
let outcome = CanonicalOutcome::Committed { head: chain_notification.tip().header.clone() };
Expand Down
8 changes: 4 additions & 4 deletions crates/blockchain-tree/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub(crate) enum MakeCanonicalAction {
/// Inserting an old canonical chain.
InsertOldCanonicalChain,
/// Clearing trie updates of other children chains after fork choice update.
ClearTrieUpdatesForOtherChilds,
ClearTrieUpdatesForOtherChildren,
}

/// Canonicalization metrics
Expand Down Expand Up @@ -118,7 +118,7 @@ struct MakeCanonicalMetrics {
insert_old_canonical_chain: Histogram,
/// Duration of the clear trie updates of other children chains after fork choice update
/// action.
clear_trie_updates_for_other_childs: Histogram,
clear_trie_updates_for_other_children: Histogram,
}

impl MakeCanonicalMetrics {
Expand All @@ -145,8 +145,8 @@ impl MakeCanonicalMetrics {
MakeCanonicalAction::InsertOldCanonicalChain => {
self.insert_old_canonical_chain.record(duration)
}
MakeCanonicalAction::ClearTrieUpdatesForOtherChilds => {
self.clear_trie_updates_for_other_childs.record(duration)
MakeCanonicalAction::ClearTrieUpdatesForOtherChildren => {
self.clear_trie_updates_for_other_children.record(duration)
}
}
}
Expand Down

0 comments on commit 97de9d2

Please sign in to comment.