From f475efa3c2d43b81e90cf8a6d209253ffbfc73f0 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Mon, 9 Dec 2019 23:22:48 -0800 Subject: [PATCH] p2p: golint fixes --- p2p/metrics.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2p/metrics.go b/p2p/metrics.go index b2456b92a1..f0eabb79f9 100644 --- a/p2p/metrics.go +++ b/p2p/metrics.go @@ -31,13 +31,13 @@ import ( const ( // MetricsInboundTraffic is the name for the registered inbound traffic meter - MetricsInboundTraffic = "p2p/ingress" + MetricsInboundTraffic = "p2p/ingress" // MetricsOutboundTraffic is the name for the registered outbound traffic meter - MetricsOutboundTraffic = "p2p/egress" + MetricsOutboundTraffic = "p2p/egress" // MetricsOutboundConnects is the name for the registered outbound connects meter MetricsOutboundConnects = "p2p/dials" // MetricsInboundConnects is the name for the registered inbound connects meter - MetricsInboundConnects = "p2p/serves" + MetricsInboundConnects = "p2p/serves" // MeteredPeerLimit is the amount of peers are individually metered MeteredPeerLimit = 1024 @@ -53,7 +53,7 @@ var ( // PeerIngressRegistry is a registry containing the peer ingress PeerIngressRegistry = metrics.NewPrefixedChildRegistry(metrics.EphemeralRegistry, MetricsInboundTraffic+"/") // PeerEgressRegistry is a registry containing the peer egress - PeerEgressRegistry = metrics.NewPrefixedChildRegistry(metrics.EphemeralRegistry, MetricsOutboundTraffic+"/") + PeerEgressRegistry = metrics.NewPrefixedChildRegistry(metrics.EphemeralRegistry, MetricsOutboundTraffic+"/") meteredPeerFeed event.Feed // Event feed for peer metrics meteredPeerCount int32 // Actually stored peer connection count