filer: retryable when error is not found

This commit is contained in:
chrislu
2022-08-19 03:36:15 -07:00
parent 58dd880322
commit aac45f3e89
2 changed files with 6 additions and 2 deletions

View File

@@ -309,7 +309,7 @@ func ReadUrlAsStream(fileUrl string, cipherKey []byte, isContentGzipped bool, is
}
defer CloseResponse(r)
if r.StatusCode >= 400 {
retryable = r.StatusCode >= 500
retryable = r.StatusCode == http.StatusNotFound || r.StatusCode >= 500
return retryable, fmt.Errorf("%s: %s", fileUrl, r.Status)
}