cleanup
This commit is contained in:
parent
4519052779
commit
0b70abc395
@ -2,9 +2,9 @@ package indexer
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"strings"
|
||||
|
||||
"github.com/ethereum/go-ethereum/metrics"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -24,7 +24,7 @@ func metricName(subsystem, name string) string {
|
||||
return strings.Join(parts, "/")
|
||||
}
|
||||
|
||||
type indexerMetricsContext struct {
|
||||
type indexerMetricsHandles struct {
|
||||
// The total number of processed blocks
|
||||
blocks metrics.Counter
|
||||
// The total number of processed transactions
|
||||
@ -45,8 +45,8 @@ type indexerMetricsContext struct {
|
||||
tStateStoreCodeProcessing metrics.Timer
|
||||
}
|
||||
|
||||
func RegisterIndexerMetrics(reg metrics.Registry) indexerMetricsContext {
|
||||
ctx := indexerMetricsContext{
|
||||
func RegisterIndexerMetrics(reg metrics.Registry) indexerMetricsHandles {
|
||||
ctx := indexerMetricsHandles{
|
||||
blocks: metrics.NewCounter(),
|
||||
transactions: metrics.NewCounter(),
|
||||
receipts: metrics.NewCounter(),
|
||||
|
@ -519,7 +519,7 @@ func (sds *Service) WriteStateDiffAt(blockNumber uint64, params Params) error {
|
||||
|
||||
// Writes a state diff from the current block, parent state root, and provided params
|
||||
func (sds *Service) writeStateDiff(block *types.Block, parentRoot common.Hash, params Params) error {
|
||||
log.Info("writing state diff", "block height", block.Number().Uint64())
|
||||
log.Info("Writing state diff", "block height", block.Number().Uint64())
|
||||
var totalDifficulty *big.Int
|
||||
var receipts types.Receipts
|
||||
if params.IncludeTD {
|
||||
|
Loading…
Reference in New Issue
Block a user