Skip to content

Commit 97de9d2

Browse files
authored
Change the wrong 'Child' and 'Auxiliary' usage (#9033)
1 parent 572d4c1 commit 97de9d2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/blockchain-tree/src/blockchain_tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ where
11981198
}
11991199
});
12001200

1201-
durations_recorder.record_relative(MakeCanonicalAction::ClearTrieUpdatesForOtherChilds);
1201+
durations_recorder.record_relative(MakeCanonicalAction::ClearTrieUpdatesForOtherChildren);
12021202

12031203
// Send notification about new canonical chain and return outcome of canonicalization.
12041204
let outcome = CanonicalOutcome::Committed { head: chain_notification.tip().header.clone() };

crates/blockchain-tree/src/metrics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub(crate) enum MakeCanonicalAction {
8989
/// Inserting an old canonical chain.
9090
InsertOldCanonicalChain,
9191
/// Clearing trie updates of other children chains after fork choice update.
92-
ClearTrieUpdatesForOtherChilds,
92+
ClearTrieUpdatesForOtherChildren,
9393
}
9494

9595
/// Canonicalization metrics
@@ -118,7 +118,7 @@ struct MakeCanonicalMetrics {
118118
insert_old_canonical_chain: Histogram,
119119
/// Duration of the clear trie updates of other children chains after fork choice update
120120
/// action.
121-
clear_trie_updates_for_other_childs: Histogram,
121+
clear_trie_updates_for_other_children: Histogram,
122122
}
123123

124124
impl MakeCanonicalMetrics {
@@ -145,8 +145,8 @@ impl MakeCanonicalMetrics {
145145
MakeCanonicalAction::InsertOldCanonicalChain => {
146146
self.insert_old_canonical_chain.record(duration)
147147
}
148-
MakeCanonicalAction::ClearTrieUpdatesForOtherChilds => {
149-
self.clear_trie_updates_for_other_childs.record(duration)
148+
MakeCanonicalAction::ClearTrieUpdatesForOtherChildren => {
149+
self.clear_trie_updates_for_other_children.record(duration)
150150
}
151151
}
152152
}

0 commit comments

Comments
 (0)