Skip to content

Commit

Permalink
fix: grpc client options
Browse files Browse the repository at this point in the history
  • Loading branch information
linyyyang committed Dec 8, 2022
1 parent 713ae73 commit 91cf080
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,8 @@ func evaluateOptions(ctx context.Context, u *url.URL, opts []GrpcClientOptional)
if u.Scheme == "grpc" || u.Scheme == "http" {
opt.target = u.Host
}
tag := query.Get("tag")

if opt.resolver != nil {
tag := query.Get("tag")
addr, err := opt.resolver(ctx, u.String(), tag)
if err != nil {
return nil, err
Expand Down

0 comments on commit 91cf080

Please sign in to comment.