mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32: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
|
// 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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue