Skip to content

Commit 14bdcde

Browse files
committed
swarm/testutil: remove EnableMetrics
1 parent 427316a commit 14bdcde

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎swarm/testutil/http.go‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ import (
2222
"net/http/httptest"
2323
"os"
2424
"testing"
25-
"time"
2625

27-
"github.com/ethereum/go-ethereum/metrics"
28-
"github.com/ethereum/go-ethereum/metrics/influxdb"
2926
"github.com/ethereum/go-ethereum/swarm/api"
3027
"github.com/ethereum/go-ethereum/swarm/storage"
3128
"github.com/ethereum/go-ethereum/swarm/storage/mru"
@@ -113,11 +110,3 @@ func (t *TestSwarmServer) Close() {
113110
func (t *TestSwarmServer) GetCurrentTime() mru.Timestamp {
114111
return t.timestampProvider.Now()
115112
}
116-
117-
// EnableMetrics is starting InfluxDB reporter so that we collect stats when running tests locally
118-
func EnableMetrics() {
119-
metrics.Enabled = true
120-
go influxdb.InfluxDBWithTags(metrics.DefaultRegistry, 1*time.Second, "http://localhost:8086", "metrics", "admin", "admin", "swarm.", map[string]string{
121-
"host": "test",
122-
})
123-
}

0 commit comments

Comments
 (0)