Skip to content

Commit

Permalink
Review comments #1.
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars committed Apr 23, 2020
1 parent da320e5 commit b236292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion balancer/rls/internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func newRLSClient(cc *grpc.ClientConn, dialTarget string, rpcTimeout time.Durati
}
}

type lookupCallback func(target []string, headerData string, err error)
type lookupCallback func(targets []string, headerData string, err error)

// lookup starts a RouteLookup RPC in a separate goroutine and returns the
// results (and error, if any) in the provided callback.
Expand Down
2 changes: 1 addition & 1 deletion balancer/rls/internal/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestLookupFailure(t *testing.T) {
return
}
if len(targets) != 0 || headerData != "" {
errCh <- fmt.Errorf("rlsClient.lookup() = (%v, %s), should be empty strings", targets, headerData)
errCh <- fmt.Errorf("rlsClient.lookup() = (%v, %s), want (nil, \"\")", targets, headerData)
return
}
errCh <- nil
Expand Down

0 comments on commit b236292

Please sign in to comment.