From fa9c531ad9468735d5d4fbe7a328bededee5e442 Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Thu, 2 Jul 2020 17:03:08 +0100 Subject: [PATCH] client: add select options (#1786) --- grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())