Skip to content

Commit 77355ad

Browse files
committed
golangci-lint: update due to high resource usage
Encountering this [issue](golangci/golangci-lint#3565) when runing `make lint` Signed-off-by: Imran Pochi <[email protected]>
1 parent c3997b6 commit 77355ad

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endif
2424
GOOS ?= $(shell go env GOOS)
2525
GOARCH ?= $(shell go env GOARCH)
2626
INSTALL_LOCATION:=$(shell go env GOPATH)/bin
27-
GOLANGCI_LINT_VERSION ?= 1.50.1
27+
GOLANGCI_LINT_VERSION ?= 1.51.2
2828
GOSEC_VERSION ?= 2.13.1
2929

3030
REGISTRY ?= gcr.io/$(shell gcloud config get-value project)

pkg/agent/client.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ import (
2020
"context"
2121
"fmt"
2222
"io"
23-
"os"
2423
"net"
24+
"os"
2525
runpprof "runtime/pprof"
2626
"strconv"
2727
"sync"
2828
"sync/atomic"
2929
"time"
3030

3131
"google.golang.org/grpc"
32-
"google.golang.org/grpc/connectivity"
3332
"google.golang.org/grpc/codes"
33+
"google.golang.org/grpc/connectivity"
3434
"google.golang.org/grpc/metadata"
3535
"google.golang.org/grpc/status"
3636
"k8s.io/klog/v2"
@@ -335,7 +335,7 @@ func (a *Client) Serve() {
335335
return
336336
}
337337
if status.Code(err) == codes.Canceled {
338-
klog.V(2).InfoS("stream canceled", "serverID", a.serverID, "agentID", a.agentID)
338+
klog.V(2).InfoS("stream canceled", "serverID", a.serverID, "agentID", a.agentID)
339339
} else {
340340
klog.ErrorS(err, "could not read stream", "serverID", a.serverID, "agentID", a.agentID)
341341
}

pkg/server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func NewProxyServer(serverID string, proxyStrategies []ProxyStrategy, serverCoun
451451
}
452452

453453
return &ProxyServer{
454-
established: make(map[string](map[int64]*ProxyClientConnection)),
454+
established: make(map[string](map[int64]*ProxyClientConnection)),
455455
PendingDial: NewPendingDialManager(),
456456
serverID: serverID,
457457
serverCount: serverCount,

0 commit comments

Comments
 (0)