Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Пешков Дмитрий committed Sep 15, 2024
1 parent 1e97854 commit f4b8fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func CheckOrder(OrderNum string) (services.OrderFromAccrual, int, error) {
if err != nil {
return data, 0, err
}
if resp.StatusCode != http.StatusTooManyRequests {
if resp.StatusCode == http.StatusTooManyRequests {
retryAfter := resp.Header.Get("Retry-After")
seconds, err := strconv.Atoi(retryAfter)
if err != nil {
Expand Down

0 comments on commit f4b8fbc

Please sign in to comment.