Use insecure.NewCredentials instead of grpc.WithInsecure
grpc.WithInsecure is being deprecated. Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
		| @@ -59,6 +59,7 @@ import ( | ||||
| 	"google.golang.org/grpc" | ||||
| 	"google.golang.org/grpc/backoff" | ||||
| 	"google.golang.org/grpc/credentials" | ||||
| 	"google.golang.org/grpc/credentials/insecure" | ||||
| ) | ||||
|  | ||||
| const ( | ||||
| @@ -548,7 +549,7 @@ func (pc *proxyClients) getClient(address string) (*grpc.ClientConn, error) { | ||||
| 		Backoff: backoffConfig, | ||||
| 	} | ||||
| 	gopts := []grpc.DialOption{ | ||||
| 		grpc.WithInsecure(), | ||||
| 		grpc.WithTransportCredentials(insecure.NewCredentials()), | ||||
| 		grpc.WithConnectParams(connParams), | ||||
| 		grpc.WithContextDialer(dialer.ContextDialer), | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kazuyoshi Kato
					Kazuyoshi Kato