client retriable req: fix err bug
When retrying requests, we would not save the err from the broker call
properly.
@@ -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) {
