Skip to content

Commit f82c0e0

Browse files
committed
fix: use proper count for 429 response codes
1 parent 606886d commit f82c0e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/geizhals/download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func downloadHTML(entityURL string) (*goquery.Document, int, error) {
8282
// Cleanup when this function ends
8383
defer resp.Body.Close()
8484

85-
if resp.StatusCode != http.StatusTooManyRequests {
85+
if resp.StatusCode == http.StatusTooManyRequests {
8686
prometheus.HTTPRequests429.Inc()
8787
}
8888
if resp.StatusCode != http.StatusOK {

0 commit comments

Comments
 (0)