Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Think of rate limiting as a bucket leaking water at 1cc/second. The
- # bucket can hold as many ccs as there are seconds in the rate
- # limiting period (e.g. 3600 for per-hour ratelimits), and if you can
- # perform N actions in that time, each action fills the bucket by
- # 1/Nth of its volume. You may only perform an action if the bucket
- # would not overflow.
Add Comment
Please, Sign In to add comment