aboutsummaryrefslogtreecommitdiffstats
path: root/dex/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to 'dex/metrics.go')
-rw-r--r--dex/metrics.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dex/metrics.go b/dex/metrics.go
index 8d923ed70..0aa88fff6 100644
--- a/dex/metrics.go
+++ b/dex/metrics.go
@@ -92,9 +92,9 @@ func (rw *meteredMsgReadWriter) ReadMsg() (p2p.Msg, error) {
case msg.Code == BlockBodiesMsg:
packets, traffic = reqBodyInPacketsMeter, reqBodyInTrafficMeter
- case rw.version >= eth63 && msg.Code == NodeDataMsg:
+ case msg.Code == NodeDataMsg:
packets, traffic = reqStateInPacketsMeter, reqStateInTrafficMeter
- case rw.version >= eth63 && msg.Code == ReceiptsMsg:
+ case msg.Code == ReceiptsMsg:
packets, traffic = reqReceiptInPacketsMeter, reqReceiptInTrafficMeter
case msg.Code == NewBlockHashesMsg:
@@ -119,9 +119,9 @@ func (rw *meteredMsgReadWriter) WriteMsg(msg p2p.Msg) error {
case msg.Code == BlockBodiesMsg:
packets, traffic = reqBodyOutPacketsMeter, reqBodyOutTrafficMeter
- case rw.version >= eth63 && msg.Code == NodeDataMsg:
+ case msg.Code == NodeDataMsg:
packets, traffic = reqStateOutPacketsMeter, reqStateOutTrafficMeter
- case rw.version >= eth63 && msg.Code == ReceiptsMsg:
+ case msg.Code == ReceiptsMsg:
packets, traffic = reqReceiptOutPacketsMeter, reqReceiptOutTrafficMeter
case msg.Code == NewBlockHashesMsg: