mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
Merge pull request #962 from mythi/PR-2022-026
drop one more grpc.WithInsecure()
This commit is contained in:
commit
bac24e1772
@ -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)
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user