diff --git a/balancer/rls/internal/client.go b/balancer/rls/internal/client.go index ca098a65708a..b6fe22572949 100644 --- a/balancer/rls/internal/client.go +++ b/balancer/rls/internal/client.go @@ -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. diff --git a/balancer/rls/internal/client_test.go b/balancer/rls/internal/client_test.go index 2eb01d2ae85a..386267b9033d 100644 --- a/balancer/rls/internal/client_test.go +++ b/balancer/rls/internal/client_test.go @@ -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