aboutsummaryrefslogtreecommitdiffstats
path: root/swarm
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2018-07-24 00:45:39 +0800
committerAnton Evangelatov <anton.evangelatov@gmail.com>2018-07-24 00:45:39 +0800
commit14bdcdeab448885d22e516933f59096311c19672 (patch)
tree4c5443d45321966ba7016d6025067596361083fb /swarm
parent427316a7078e1876ad8db9d67550609c961e84f6 (diff)
downloadgo-tangerine-14bdcdeab448885d22e516933f59096311c19672.tar
go-tangerine-14bdcdeab448885d22e516933f59096311c19672.tar.gz
go-tangerine-14bdcdeab448885d22e516933f59096311c19672.tar.bz2
go-tangerine-14bdcdeab448885d22e516933f59096311c19672.tar.lz
go-tangerine-14bdcdeab448885d22e516933f59096311c19672.tar.xz
go-tangerine-14bdcdeab448885d22e516933f59096311c19672.tar.zst
go-tangerine-14bdcdeab448885d22e516933f59096311c19672.zip
swarm/testutil: remove EnableMetrics
Diffstat (limited to 'swarm')
-rw-r--r--swarm/testutil/http.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/swarm/testutil/http.go b/swarm/testutil/http.go
index 992b919d0..238f78308 100644
--- a/swarm/testutil/http.go
+++ b/swarm/testutil/http.go
@@ -22,10 +22,7 @@ import (
"net/http/httptest"
"os"
"testing"
- "time"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/metrics/influxdb"
"github.com/ethereum/go-ethereum/swarm/api"
"github.com/ethereum/go-ethereum/swarm/storage"
"github.com/ethereum/go-ethereum/swarm/storage/mru"
@@ -113,11 +110,3 @@ func (t *TestSwarmServer) Close() {
func (t *TestSwarmServer) GetCurrentTime() mru.Timestamp {
return t.timestampProvider.Now()
}
-
-// EnableMetrics is starting InfluxDB reporter so that we collect stats when running tests locally
-func EnableMetrics() {
- metrics.Enabled = true
- go influxdb.InfluxDBWithTags(metrics.DefaultRegistry, 1*time.Second, "http://localhost:8086", "metrics", "admin", "admin", "swarm.", map[string]string{
- "host": "test",
- })
-}