mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 21:27:42 +00:00
report rate limit 100%
This commit is contained in:
parent
907dc5510d
commit
7bff205523
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue