Skip to content

Commit

Permalink
WIP code review: upstreamResolverStatus.resolve(): add resolver to er…
Browse files Browse the repository at this point in the history
…r (still discussing Canceled check)
  • Loading branch information
DerRockWolf committed Nov 18, 2023
1 parent be3b214 commit c25d271
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resolver/parallel_best_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ func (r *upstreamResolverStatus) resolve(req *model.Request, ch chan<- requestRe
if err != nil {
// update the last error time
r.lastErrorTime.Store(time.Now())

err = fmt.Errorf("%s: %w", r.resolver, err)
}

ch <- requestResponse{
Expand Down

0 comments on commit c25d271

Please sign in to comment.