소스 검색

Merge pull request #40032 from jmartin84/fix-grpc-withdialer-deprecation-warning

Fix grpc withdialer deprecation warning
Brian Goff 5 년 전
부모
커밋
47c5c67ed8
2개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      daemon/daemon.go
  2. 0 4
      hack/validate/golangci-lint.yml

+ 1 - 1
daemon/daemon.go

@@ -889,7 +889,7 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S
 	gopts := []grpc.DialOption{
 		grpc.WithInsecure(),
 		grpc.WithBackoffMaxDelay(3 * time.Second),
-		grpc.WithDialer(dialer.Dialer),
+		grpc.WithContextDialer(dialer.ContextDialer),
 
 		// TODO(stevvooe): We may need to allow configuration of this on the client.
 		grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(defaults.DefaultMaxRecvMsgSize)),

+ 0 - 4
hack/validate/golangci-lint.yml

@@ -74,10 +74,6 @@ issues:
     - text: "(G201|G202): SQL string (formatting|concatenation)"
       linters:
         - gosec
-    # FIXME temporarily suppress these. See #39928
-    - text: "SA1019: grpc.WithDialer is deprecated"
-      linters:
-        - staticcheck
     # FIXME temporarily suppress these. See #39924
     - text: "SA1019: .*\\.Xattrs is deprecated: Use PAXRecords instead"
       linters: