Improved retries

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2025-05-07 06:37:59 +01:00
parent c29e828d23
commit fa72756aaf
2 changed files with 2 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ func (h *HTTPClient) Get(url string) (*http.Response, error) {
if resp.StatusCode == 429 {
fmt.Println("Rate limit exceeded, retrying...")
h.retries--
time.Sleep(30 * time.Second)
continue
}