Skip to content

Commit

Permalink
golangci-lint: update due to high resource usage
Browse files Browse the repository at this point in the history
Encountering this [issue](golangci/golangci-lint#3565)
when runing `make lint`

Signed-off-by: Imran Pochi <imranpochi@microsoft.com>
  • Loading branch information
ipochi committed Jul 26, 2023
1 parent c3997b6 commit 77355ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ endif
GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)
INSTALL_LOCATION:=$(shell go env GOPATH)/bin
GOLANGCI_LINT_VERSION ?= 1.50.1
GOLANGCI_LINT_VERSION ?= 1.51.2
GOSEC_VERSION ?= 2.13.1

REGISTRY ?= gcr.io/$(shell gcloud config get-value project)
Expand Down
6 changes: 3 additions & 3 deletions pkg/agent/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ import (
"context"
"fmt"
"io"
"os"
"net"
"os"
runpprof "runtime/pprof"
"strconv"
"sync"
"sync/atomic"
"time"

"google.golang.org/grpc"
"google.golang.org/grpc/connectivity"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/connectivity"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
"k8s.io/klog/v2"
Expand Down Expand Up @@ -335,7 +335,7 @@ func (a *Client) Serve() {
return
}
if status.Code(err) == codes.Canceled {
klog.V(2).InfoS("stream canceled", "serverID", a.serverID, "agentID", a.agentID)
klog.V(2).InfoS("stream canceled", "serverID", a.serverID, "agentID", a.agentID)
} else {
klog.ErrorS(err, "could not read stream", "serverID", a.serverID, "agentID", a.agentID)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func NewProxyServer(serverID string, proxyStrategies []ProxyStrategy, serverCoun
}

return &ProxyServer{
established: make(map[string](map[int64]*ProxyClientConnection)),
established: make(map[string](map[int64]*ProxyClientConnection)),
PendingDial: NewPendingDialManager(),
serverID: serverID,
serverCount: serverCount,
Expand Down

0 comments on commit 77355ad

Please sign in to comment.