Skip to content

Commit

Permalink
fixup! fix: #89
Browse files Browse the repository at this point in the history
Signed-off-by: Yoan Blanc <yblanc@edgelab.ch>
  • Loading branch information
greut committed Sep 16, 2020
1 parent c6b32d9 commit bbfba3c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions httpclient/client.go
Expand Up @@ -177,15 +177,19 @@ outter:
if err != nil {
multiErr.Push(err.Error())
c.reportError(request, err)
} else {
c.reportRequestEnd(request, response)

continue
}

if err == nil && response.StatusCode < http.StatusInternalServerError {
// Clear errors if any iteration succeeds
multiErr = &valkyrie.MultiError{}
break
c.reportRequestEnd(request, response)

if response.StatusCode >= http.StatusInternalServerError {
continue
}

// Clear errors if any iteration succeeds
multiErr = &valkyrie.MultiError{}
break
}

return response, multiErr.HasError()
Expand Down

0 comments on commit bbfba3c

Please sign in to comment.