Skip to content

Commit 0b70abc

Browse files
committed
cleanup
1 parent 4519052 commit 0b70abc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

statediff/indexer/metrics.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package indexer
22

33
import (
44
"database/sql"
5+
"strings"
56

67
"github.com/ethereum/go-ethereum/metrics"
7-
"strings"
88
)
99

1010
const (
@@ -24,7 +24,7 @@ func metricName(subsystem, name string) string {
2424
return strings.Join(parts, "/")
2525
}
2626

27-
type indexerMetricsContext struct {
27+
type indexerMetricsHandles struct {
2828
// The total number of processed blocks
2929
blocks metrics.Counter
3030
// The total number of processed transactions
@@ -45,8 +45,8 @@ type indexerMetricsContext struct {
4545
tStateStoreCodeProcessing metrics.Timer
4646
}
4747

48-
func RegisterIndexerMetrics(reg metrics.Registry) indexerMetricsContext {
49-
ctx := indexerMetricsContext{
48+
func RegisterIndexerMetrics(reg metrics.Registry) indexerMetricsHandles {
49+
ctx := indexerMetricsHandles{
5050
blocks: metrics.NewCounter(),
5151
transactions: metrics.NewCounter(),
5252
receipts: metrics.NewCounter(),

statediff/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ func (sds *Service) WriteStateDiffAt(blockNumber uint64, params Params) error {
519519

520520
// Writes a state diff from the current block, parent state root, and provided params
521521
func (sds *Service) writeStateDiff(block *types.Block, parentRoot common.Hash, params Params) error {
522-
log.Info("writing state diff", "block height", block.Number().Uint64())
522+
log.Info("Writing state diff", "block height", block.Number().Uint64())
523523
var totalDifficulty *big.Int
524524
var receipts types.Receipts
525525
if params.IncludeTD {

0 commit comments

Comments
 (0)