Guest User

Untitled

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