Skip to content
Snippets Groups Projects
Commit fc39c396 authored by Francé Wilke's avatar Francé Wilke
Browse files

Don't retry if no http code

parent 24098cfa
Branches
Tags v1.46.0
No related merge requests found
...@@ -248,6 +248,10 @@ func IsRetryableError(err error) bool { ...@@ -248,6 +248,10 @@ func IsRetryableError(err error) bool {
code := HTTPCode(err) code := HTTPCode(err)
if code == 0 {
return false
}
// 429 should always retry // 429 should always retry
if code == http.StatusTooManyRequests { if code == http.StatusTooManyRequests {
return true return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment