diff --git a/app/vmagent/remotewrite/statconn.go b/app/vmagent/remotewrite/statconn.go index e99a5b15e0..5d597e9bf7 100644 --- a/app/vmagent/remotewrite/statconn.go +++ b/app/vmagent/remotewrite/statconn.go @@ -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() diff --git a/lib/promscrape/statconn.go b/lib/promscrape/statconn.go index 84e50dfaa8..787250bb2a 100644 --- a/lib/promscrape/statconn.go +++ b/lib/promscrape/statconn.go @@ -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)