浏览代码

Use grpc.NewClient instead of grpc.Dial (#3369)

Signed-off-by: shuheiktgw <s-kitagawa@mercari.com>
Signed-off-by: Bill Hamilton <bill.hamilton@delinea.com>
Shuhei Kitagawa 2 年之前
父节点
当前提交
8af8583d14
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/provider/yandex/common/sdk.go

+ 1 - 1
pkg/provider/yandex/common/sdk.go

@@ -57,7 +57,7 @@ func NewGrpcConnection(
 		return nil, err
 	}
 
-	return grpc.Dial(serviceAPIEndpoint.Address,
+	return grpc.NewClient(serviceAPIEndpoint.Address,
 		grpc.WithTransportCredentials(credentials.NewTLS(tlsConfig)),
 		grpc.WithKeepaliveParams(keepalive.ClientParameters{
 			Time:                time.Second * 30,