From 7745e521ff6104ff816d2826de86baa5b8051d03 Mon Sep 17 00:00:00 2001 From: Easwar Swaminathan Date: Tue, 13 Oct 2020 13:51:00 -0700 Subject: [PATCH] meshca: Use grpc suffix for grpc specific generated code. (#3954) --- credentials/tls/certprovider/meshca/plugin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/credentials/tls/certprovider/meshca/plugin.go b/credentials/tls/certprovider/meshca/plugin.go index b00ad5f08..5ff3e9cf2 100644 --- a/credentials/tls/certprovider/meshca/plugin.go +++ b/credentials/tls/certprovider/meshca/plugin.go @@ -38,6 +38,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials/tls/certprovider" + meshgrpc "google.golang.org/grpc/credentials/tls/certprovider/meshca/internal/v1" meshpb "google.golang.org/grpc/credentials/tls/certprovider/meshca/internal/v1" "google.golang.org/grpc/internal/grpclog" "google.golang.org/grpc/metadata" @@ -144,7 +145,7 @@ func (p *providerPlugin) run(ctx context.Context) { // // It returns the amount of time the new certificate is valid for. func (p *providerPlugin) updateKeyMaterial(ctx context.Context) (time.Duration, error) { - client := meshpb.NewMeshCertificateServiceClient(p.cc) + client := meshgrpc.NewMeshCertificateServiceClient(p.cc) retries := 0 for { if ctx.Err() != nil {