diff --git a/crates/blockchain-tree/src/blockchain_tree.rs b/crates/blockchain-tree/src/blockchain_tree.rs index ea73fdcb8702..5d73a1a78e06 100644 --- a/crates/blockchain-tree/src/blockchain_tree.rs +++ b/crates/blockchain-tree/src/blockchain_tree.rs @@ -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() }; diff --git a/crates/blockchain-tree/src/metrics.rs b/crates/blockchain-tree/src/metrics.rs index 735f1db96f1c..5d44a6391178 100644 --- a/crates/blockchain-tree/src/metrics.rs +++ b/crates/blockchain-tree/src/metrics.rs @@ -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 @@ -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 { @@ -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) } } }