Skip to content

Commit

Permalink
fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Feb 26, 2024
1 parent cb164e2 commit 4df5dfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/storage/provider/src/providers/database/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub(crate) enum Action {
InsertBlockOmmers,
InsertTransactionSenders,
InsertTransactions,
InsertTransactionHashNumberss,
InsertTransactionHashNumbers,
InsertBlockWithdrawals,
InsertBlockBodyIndices,
InsertTransactionBlocks,
Expand All @@ -81,10 +81,10 @@ impl Action {
Action::InsertBlockOmmers => "insert block ommers",
Action::InsertTransactionSenders => "insert tx senders",
Action::InsertTransactions => "insert transactions",
Action::InsertTransactionHashNumberss => "insert tx hash numbers",
Action::InsertTransactionHashNumbers => "insert transaction hash numbers",
Action::InsertBlockWithdrawals => "insert block withdrawals",
Action::InsertBlockBodyIndices => "insert block body indices",
Action::InsertTransactionBlocks => "insert transaction block",
Action::InsertTransactionBlocks => "insert transaction blocks",
Action::GetNextTxNum => "get next tx num",
Action::GetParentTD => "get parent TD",
}
Expand Down
2 changes: 1 addition & 1 deletion crates/storage/provider/src/providers/database/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2469,7 +2469,7 @@ impl<TX: DbTxMut + DbTx> BlockWriter for DatabaseProvider<TX> {
durations_recorder
.record_duration(metrics::Action::InsertTransactions, transactions_elapsed);
durations_recorder.record_duration(
metrics::Action::InsertTransactionHashNumberss,
metrics::Action::InsertTransactionHashNumbers,
tx_hash_numbers_elapsed,
);

Expand Down

0 comments on commit 4df5dfb

Please sign in to comment.