Merge pull request #962 from mythi/PR-2022-026

drop one more grpc.WithInsecure()
This commit is contained in:
Ed Bartosh 2022-04-20 17:55:41 +03:00 committed by GitHub
commit bac24e1772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}),