Skip to content

Commit

Permalink
feat(pingdom): allow test to run in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkettelerij committed Jun 20, 2024
1 parent 2fd2938 commit 733fa0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/providers/pingdom.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func handleRateLimits(ctx context.Context, rateLimitHeader string) error {
if remaining < 25 {
log.FromContext(ctx).Info(
fmt.Sprintf("Waiting for %d seconds to avoid hitting Pingdom rate limit", resetTime+1),
headerReqLimitShort, remaining)
rateLimitHeader, remaining)

time.Sleep(time.Duration(remaining+1) * time.Second)
}
Expand Down

0 comments on commit 733fa0f

Please sign in to comment.