all: make go vet happy

This commit is contained in:
Aliaksandr Valialkin 2021-03-17 00:48:20 +02:00
parent 41fe707bec
commit 5e77a939c2
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import (
"github.com/VictoriaMetrics/metrics"
)
func statDial(network_, addr string) (conn net.Conn, err error) {
func statDial(networkUnused, addr string) (conn net.Conn, err error) {
network := netutil.GetTCPNetwork()
conn, err = net.DialTimeout(network, addr, 5*time.Second)
dialsTotal.Inc()

View File

@ -15,7 +15,7 @@ import (
"github.com/VictoriaMetrics/metrics"
)
func statStdDial(ctx context.Context, network_, addr string) (net.Conn, error) {
func statStdDial(ctx context.Context, networkUnused, addr string) (net.Conn, error) {
d := getStdDialer()
network := netutil.GetTCPNetwork()
conn, err := d.DialContext(ctx, network, addr)