mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
all: make golangci-lint happy after the commit 6378205415
This commit is contained in:
parent
8005ba26b9
commit
b997f4a418
@ -9,8 +9,8 @@ import (
|
|||||||
"github.com/VictoriaMetrics/metrics"
|
"github.com/VictoriaMetrics/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
func statDial(network, addr string) (conn net.Conn, err error) {
|
func statDial(network_, addr string) (conn net.Conn, err error) {
|
||||||
network = netutil.GetTCPNetwork()
|
network := netutil.GetTCPNetwork()
|
||||||
conn, err = net.DialTimeout(network, addr, 5*time.Second)
|
conn, err = net.DialTimeout(network, addr, 5*time.Second)
|
||||||
dialsTotal.Inc()
|
dialsTotal.Inc()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -15,9 +15,9 @@ import (
|
|||||||
"github.com/VictoriaMetrics/metrics"
|
"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()
|
d := getStdDialer()
|
||||||
network = netutil.GetTCPNetwork()
|
network := netutil.GetTCPNetwork()
|
||||||
conn, err := d.DialContext(ctx, network, addr)
|
conn, err := d.DialContext(ctx, network, addr)
|
||||||
dialsTotal.Inc()
|
dialsTotal.Inc()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user