aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-29 21:11:01 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-06-30 06:51:46 +0800
commit01fe97211354d13ecaba8a52c82b808b7a7e8393 (patch)
tree337e23800833c81e1d21f5850d4079c575e89ea7 /p2p
parentccbb56b4f2cdba352eaa859ce3e34f999287f5c0 (diff)
downloadgo-tangerine-01fe97211354d13ecaba8a52c82b808b7a7e8393.tar
go-tangerine-01fe97211354d13ecaba8a52c82b808b7a7e8393.tar.gz
go-tangerine-01fe97211354d13ecaba8a52c82b808b7a7e8393.tar.bz2
go-tangerine-01fe97211354d13ecaba8a52c82b808b7a7e8393.tar.lz
go-tangerine-01fe97211354d13ecaba8a52c82b808b7a7e8393.tar.xz
go-tangerine-01fe97211354d13ecaba8a52c82b808b7a7e8393.tar.zst
go-tangerine-01fe97211354d13ecaba8a52c82b808b7a7e8393.zip
cmd, core, eth, metrics, p2p: require enabling metrics
Diffstat (limited to 'p2p')
-rw-r--r--p2p/metrics.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/p2p/metrics.go b/p2p/metrics.go
index fbe5b1e90..4b519e438 100644
--- a/p2p/metrics.go
+++ b/p2p/metrics.go
@@ -5,14 +5,14 @@ package p2p
import (
"net"
- "github.com/rcrowley/go-metrics"
+ "github.com/ethereum/go-ethereum/metrics"
)
var (
- ingressConnectMeter = metrics.GetOrRegisterMeter("p2p/InboundConnects", metrics.DefaultRegistry)
- ingressTrafficMeter = metrics.GetOrRegisterMeter("p2p/InboundTraffic", metrics.DefaultRegistry)
- egressConnectMeter = metrics.GetOrRegisterMeter("p2p/OutboundConnects", metrics.DefaultRegistry)
- egressTrafficMeter = metrics.GetOrRegisterMeter("p2p/OutboundTraffic", metrics.DefaultRegistry)
+ ingressConnectMeter = metrics.NewMeter("p2p/InboundConnects")
+ ingressTrafficMeter = metrics.NewMeter("p2p/InboundTraffic")
+ egressConnectMeter = metrics.NewMeter("p2p/OutboundConnects")
+ egressTrafficMeter = metrics.NewMeter("p2p/OutboundTraffic")
)
// meteredConn is a wrapper around a network TCP connection that meters both the