From b997f4a4186f0b00a8515b76920abf359aac7fa2 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 17 Mar 2021 00:22:57 +0200 Subject: [PATCH] all: make golangci-lint happy after the commit 6378205415cf6f6a0682f024101fe581fa21d292 --- app/vmagent/remotewrite/statconn.go | 4 ++-- lib/promscrape/statconn.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/vmagent/remotewrite/statconn.go b/app/vmagent/remotewrite/statconn.go index 7b15f39414..e99a5b15e0 100644 --- a/app/vmagent/remotewrite/statconn.go +++ b/app/vmagent/remotewrite/statconn.go @@ -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 { diff --git a/lib/promscrape/statconn.go b/lib/promscrape/statconn.go index 5635be081c..84e50dfaa8 100644 --- a/lib/promscrape/statconn.go +++ b/lib/promscrape/statconn.go @@ -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 {