Skip to content

Commit

Permalink
use ethmetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush committed Jan 9, 2025
1 parent 28942af commit 8245f1e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/state/trie_prefetcher_extra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ import (
"github.com/ava-labs/avalanchego/database"
"github.com/ava-labs/libevm/common"
"github.com/ava-labs/libevm/ethdb"
"github.com/ava-labs/libevm/metrics"
ethmetrics "github.com/ava-labs/libevm/metrics"
"github.com/ava-labs/libevm/triedb"
"github.com/ava-labs/subnet-evm/core/rawdb"
"github.com/ava-labs/subnet-evm/core/state/snapshot"
"github.com/ava-labs/subnet-evm/core/types"
"github.com/ava-labs/subnet-evm/metrics"
"github.com/ava-labs/subnet-evm/triedb/hashdb"
"github.com/stretchr/testify/require"
)
Expand All @@ -42,9 +43,9 @@ const (
// should be run against a state including around 100m storage entries.
func BenchmarkPrefetcherDatabase(b *testing.B) {
require := require.New(b)
metricsEnabled := metrics.Enabled
metrics.Enabled = true
defer func() { metrics.Enabled = metricsEnabled }()
metricsEnabled := ethmetrics.Enabled
ethmetrics.Enabled = true
defer func() { ethmetrics.Enabled = metricsEnabled }()

dir := b.TempDir()
if env := os.Getenv("TEST_DB_DIR"); env != "" {
Expand Down

0 comments on commit 8245f1e

Please sign in to comment.