Skip to content

Commit

Permalink
fix: fix incorrect nil return value
Browse files Browse the repository at this point in the history
Signed-off-by: huochexizhan <[email protected]>
  • Loading branch information
huochexizhan committed Feb 28, 2025
1 parent 06cc410 commit f47a1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hotrod/services/frontend/best_eta.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (eta *bestETA) Get(ctx context.Context, customerID int) (*Response, error)
resp := &Response{ETA: math.MaxInt64}
for _, result := range results {
if result.err != nil {
return nil, err
return nil, result.err
}
if result.route.ETA < resp.ETA {
resp.ETA = result.route.ETA
Expand Down

0 comments on commit f47a1a8

Please sign in to comment.