mirror of https://github.com/grpc/grpc-go.git
meshca: Use grpc suffix for grpc specific generated code. (#3954)
This commit is contained in:
parent
bc36dc2cbd
commit
7745e521ff
|
|
@ -38,6 +38,7 @@ import (
|
||||||
|
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/credentials/tls/certprovider"
|
"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"
|
meshpb "google.golang.org/grpc/credentials/tls/certprovider/meshca/internal/v1"
|
||||||
"google.golang.org/grpc/internal/grpclog"
|
"google.golang.org/grpc/internal/grpclog"
|
||||||
"google.golang.org/grpc/metadata"
|
"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.
|
// It returns the amount of time the new certificate is valid for.
|
||||||
func (p *providerPlugin) updateKeyMaterial(ctx context.Context) (time.Duration, error) {
|
func (p *providerPlugin) updateKeyMaterial(ctx context.Context) (time.Duration, error) {
|
||||||
client := meshpb.NewMeshCertificateServiceClient(p.cc)
|
client := meshgrpc.NewMeshCertificateServiceClient(p.cc)
|
||||||
retries := 0
|
retries := 0
|
||||||
for {
|
for {
|
||||||
if ctx.Err() != nil {
|
if ctx.Err() != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue