Browse Source

Remove window re-assignment in gateway rate limiter

This was a hold over from the old cooldown implementation.
pull/7680/head
Rapptz 3 years ago
parent
commit
58ad146a4e
  1. 3
      discord/gateway.py

3
discord/gateway.py

@ -110,9 +110,6 @@ class GatewayRatelimiter:
return self.per - (current - self.window)
self.remaining -= 1
if self.remaining == 0:
self.window = current
return 0.0
async def block(self) -> None:

Loading…
Cancel
Save