Browse Source

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

Signed-off-by: shuheiktgw <s-kitagawa@mercari.com>
Shuhei Kitagawa 2 years ago
parent
commit
119622a656
1 changed files with 1 additions and 1 deletions
  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,