Skip to content

Commit

Permalink
client retriable req: fix err bug
Browse files Browse the repository at this point in the history
When retrying requests, we would not save the err from the broker call
properly.
  • Loading branch information
twmb committed Aug 29, 2021
1 parent 198edc7 commit 307c22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kgo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ start:
// broker is different than the current, we also retry.
if r.cl.shouldRetry(tries, err) || r.cl.shouldRetry(tries, retryErr) {
if r.cl.waitTries(ctx, tries) {
next, err = r.br()
next, nextErr = r.br()
goto start
}
} else if r.cl.shouldRetryNext(tries, err) {
Expand Down

0 comments on commit 307c22e

Please sign in to comment.