report rate limit 100%

This commit is contained in:
Andre Medeiros 2022-03-12 14:07:15 -05:00
parent 907dc5510d
commit 7bff205523

View file

@ -239,7 +239,7 @@ func (rac *AuthenticatedClient) markRateLimited(rli *RateLimitingInfo) error {
return nil
}
_ = rac.statsd.Incr("reddit.api.ratelimit", nil, 0.1)
_ = rac.statsd.Incr("reddit.api.ratelimit", nil, 1.0)
key := fmt.Sprintf("reddit:%s:ratelimited", rac.redditId)
duration := time.Duration(rli.Reset) * time.Second