replaced call to deprecated grpc method WithDialer with WithContextDialer

Signed-off-by: Justen Martin <jmart@the-coder.com>
This commit is contained in:
Justen Martin 2019-10-10 15:34:42 -05:00
parent 6f069f14e6
commit 3b49bd1d84
No known key found for this signature in database
GPG Key ID: 91CB87258BCCC58C
2 changed files with 1 additions and 5 deletions

View File

@ -887,7 +887,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)),

View File

@ -46,10 +46,6 @@ issues:
- text: "G202: SQL string 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: h.Xattrs is deprecated: Use PAXRecords instead"
linters: