From 6f8796bc00be24b00b6cf0c88a5fe2555b716486 Mon Sep 17 00:00:00 2001 From: Easwar Swaminathan Date: Mon, 29 Nov 2021 14:27:43 -0800 Subject: [PATCH] rls: double import rls protos (#5003) Use `rlspb` for messages and `rlsgrpc` for services --- balancer/rls/internal/client.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/balancer/rls/internal/client.go b/balancer/rls/internal/client.go index af22bda188c..b0c858e032e 100644 --- a/balancer/rls/internal/client.go +++ b/balancer/rls/internal/client.go @@ -23,6 +23,7 @@ import ( "time" "google.golang.org/grpc" + rlsgrpc "google.golang.org/grpc/internal/proto/grpc_lookup_v1" rlspb "google.golang.org/grpc/internal/proto/grpc_lookup_v1" ) @@ -43,7 +44,7 @@ const grpcTargetType = "grpc" // throttling and asks this client to make an RPC call only after checking with // the throttler. type rlsClient struct { - stub rlspb.RouteLookupServiceClient + stub rlsgrpc.RouteLookupServiceClient // origDialTarget is the original dial target of the user and sent in each // RouteLookup RPC made to the RLS server. origDialTarget string @@ -54,7 +55,7 @@ type rlsClient struct { func newRLSClient(cc *grpc.ClientConn, dialTarget string, rpcTimeout time.Duration) *rlsClient { return &rlsClient{ - stub: rlspb.NewRouteLookupServiceClient(cc), + stub: rlsgrpc.NewRouteLookupServiceClient(cc), origDialTarget: dialTarget, rpcTimeout: rpcTimeout, }