mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
p2p: fix comment
This commit is contained in:
parent
263304dfa0
commit
c0af8b14af
1 changed files with 2 additions and 2 deletions
|
|
@ -102,8 +102,8 @@ type meteredConn struct {
|
|||
|
||||
// newMeteredConn creates a new metered connection, bumps the ingress or egress
|
||||
// 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
|
||||
// reached the limit, this function returns the original object.
|
||||
// system is disabled or the IP address is unspecified, this function returns
|
||||
// the original object.
|
||||
func newMeteredConn(conn net.Conn, ingress bool, ip net.IP) net.Conn {
|
||||
// Short circuit if metrics are disabled
|
||||
if !metrics.Enabled {
|
||||
|
|
|
|||
Loading…
Reference in a new issue