From a4affb853cb4ff8beb7f0d79dd92020329a12836 Mon Sep 17 00:00:00 2001 From: Mikko Ylinen Date: Tue, 12 Apr 2022 12:23:41 +0300 Subject: [PATCH] drop one more grpc.WithInsecure() Commit 2adad5ae76 missed one grpc.WithInsecure(). Drop it in this commit. Signed-off-by: Mikko Ylinen --- pkg/deviceplugin/server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/deviceplugin/server.go b/pkg/deviceplugin/server.go index 58364b67..56e03cf4 100644 --- a/pkg/deviceplugin/server.go +++ b/pkg/deviceplugin/server.go @@ -363,8 +363,9 @@ func waitForServer(socket string, timeout time.Duration) error { defer cancel() - //nolint: staticcheck - conn, err := grpc.DialContext(ctx, socket, grpc.WithInsecure(), grpc.WithBlock(), + conn, err := grpc.DialContext(ctx, socket, + grpc.WithTransportCredentials(insecure.NewCredentials()), + grpc.WithBlock(), grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) { return (&net.Dialer{}).DialContext(ctx, "unix", addr) }),