meshca: Use grpc suffix for grpc specific generated code. (#3954)

This commit is contained in:
Easwar Swaminathan 2020-10-13 13:51:00 -07:00 committed by GitHub
parent bc36dc2cbd
commit 7745e521ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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 {