Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
14bdcdea
Commit
14bdcdea
authored
Jul 23, 2018
by
Anton Evangelatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swarm/testutil: remove EnableMetrics
parent
427316a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
http.go
swarm/testutil/http.go
+0
-11
No files found.
swarm/testutil/http.go
View file @
14bdcdea
...
...
@@ -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"
,
})
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment