p2p: fix comment

This commit is contained in:
Kurkó Mihály 2018-09-19 11:45:33 +03:00
parent 263304dfa0
commit c0af8b14af

View file

@ -102,8 +102,8 @@ type meteredConn struct {
// newMeteredConn creates a new metered connection, bumps the ingress or egress // newMeteredConn creates a new metered connection, bumps the ingress or egress
// connection meter and also increases the metered peer count. If the metrics // connection meter and also increases the metered peer count. If the metrics
// system is disabled, the IP address is unspecified or the metered peer count // system is disabled or the IP address is unspecified, this function returns
// reached the limit, this function returns the original object. // the original object.
func newMeteredConn(conn net.Conn, ingress bool, ip net.IP) net.Conn { func newMeteredConn(conn net.Conn, ingress bool, ip net.IP) net.Conn {
// Short circuit if metrics are disabled // Short circuit if metrics are disabled
if !metrics.Enabled { if !metrics.Enabled {