diff --git a/grpc.go b/grpc.go index b57b082..3dc9152 100644 --- a/grpc.go +++ b/grpc.go @@ -114,7 +114,7 @@ func (g *grpcClient) lookupRoute(req client.Request, opts client.CallOptions) (* } // select the route to use for the request - if route, err := opts.Selector.Select(routes); err == selector.ErrNoneAvailable { + if route, err := opts.Selector.Select(routes, opts.SelectOptions...); err == selector.ErrNoneAvailable { return nil, errors.InternalServerError("go.micro.client", "service %s: %s", req.Service(), err.Error()) } else if err != nil { return nil, errors.InternalServerError("go.micro.client", "error getting next %s node: %s", req.Service(), err.Error())