Skip to content

Commit

Permalink
fix: use proper count for 429 response codes
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Rickyy-b committed Apr 2, 2023
1 parent 606886d commit f82c0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/geizhals/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func downloadHTML(entityURL string) (*goquery.Document, int, error) {
// Cleanup when this function ends
defer resp.Body.Close()

if resp.StatusCode != http.StatusTooManyRequests {
if resp.StatusCode == http.StatusTooManyRequests {
prometheus.HTTPRequests429.Inc()
}
if resp.StatusCode != http.StatusOK {
Expand Down

0 comments on commit f82c0e0

Please sign in to comment.