revert some protocol changes for now
This commit is contained in:
parent
dc67083701
commit
88d56e653d
7
grpc.go
7
grpc.go
@ -71,13 +71,8 @@ func (g *grpcClient) next(request client.Request, opts client.CallOptions) (sele
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// only get the things that are of grpc protocol
|
|
||||||
selectOptions := append(opts.SelectOptions, selector.WithFilter(
|
|
||||||
selector.FilterLabel("protocol", "grpc"),
|
|
||||||
))
|
|
||||||
|
|
||||||
// get next nodes from the selector
|
// get next nodes from the selector
|
||||||
next, err := g.opts.Selector.Select(service, selectOptions...)
|
next, err := g.opts.Selector.Select(service, opts.SelectOptions...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == selector.ErrNotFound {
|
if err == selector.ErrNotFound {
|
||||||
return nil, errors.InternalServerError("go.micro.client", "service %s: %s", service, err.Error())
|
return nil, errors.InternalServerError("go.micro.client", "service %s: %s", service, err.Error())
|
||||||
|
Loading…
Reference in New Issue
Block a user