Skip to content

Commit

Permalink
rls: update rls proto (#4877)
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars committed Oct 15, 2021
1 parent 3bae5f5 commit 7e5fcc6
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 77 deletions.
4 changes: 2 additions & 2 deletions balancer/rls/internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func (c *rlsClient) lookup(path string, keyMap map[string]string, cb lookupCallb
go func() {
ctx, cancel := context.WithTimeout(context.Background(), c.rpcTimeout)
resp, err := c.stub.RouteLookup(ctx, &rlspb.RouteLookupRequest{
Server: c.origDialTarget,
Path: path,
// TODO(easwars): Use extra_keys field to populate host, service and
// method keys.
TargetType: grpcTargetType,
KeyMap: keyMap,
})
Expand Down
4 changes: 2 additions & 2 deletions balancer/rls/internal/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ func (s) TestLookupSuccess(t *testing.T) {
"k2": "v2",
}
wantLookupRequest := &rlspb.RouteLookupRequest{
Server: defaultDialTarget,
Path: rlsReqPath,
// TODO(easwars): Use extra_keys field to populate host, service and
// method keys.
TargetType: "grpc",
KeyMap: rlsReqKeyMap,
}
Expand Down
116 changes: 43 additions & 73 deletions balancer/rls/internal/proto/grpc_lookup_v1/rls.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e5fcc6

Please sign in to comment.