Skip to content

Commit 6f8796b

Browse files
authored
rls: double import rls protos (#5003)
Use `rlspb` for messages and `rlsgrpc` for services
1 parent d542bfc commit 6f8796b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

balancer/rls/internal/client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"time"
2424

2525
"google.golang.org/grpc"
26+
rlsgrpc "google.golang.org/grpc/internal/proto/grpc_lookup_v1"
2627
rlspb "google.golang.org/grpc/internal/proto/grpc_lookup_v1"
2728
)
2829

@@ -43,7 +44,7 @@ const grpcTargetType = "grpc"
4344
// throttling and asks this client to make an RPC call only after checking with
4445
// the throttler.
4546
type rlsClient struct {
46-
stub rlspb.RouteLookupServiceClient
47+
stub rlsgrpc.RouteLookupServiceClient
4748
// origDialTarget is the original dial target of the user and sent in each
4849
// RouteLookup RPC made to the RLS server.
4950
origDialTarget string
@@ -54,7 +55,7 @@ type rlsClient struct {
5455

5556
func newRLSClient(cc *grpc.ClientConn, dialTarget string, rpcTimeout time.Duration) *rlsClient {
5657
return &rlsClient{
57-
stub: rlspb.NewRouteLookupServiceClient(cc),
58+
stub: rlsgrpc.NewRouteLookupServiceClient(cc),
5859
origDialTarget: dialTarget,
5960
rpcTimeout: rpcTimeout,
6061
}

0 commit comments

Comments
 (0)