all: make golangci-lint happy after the commit 6378205415

This commit is contained in:
Aliaksandr Valialkin 2021-03-17 00:22:57 +02:00
parent 8005ba26b9
commit b997f4a418
2 changed files with 4 additions and 4 deletions

View File

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

View File

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