1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-13 01:09:50 +00:00

Remove window re-assignment in gateway rate limiter

This was a hold over from the old cooldown implementation.
This commit is contained in:
Rapptz 2022-03-13 12:09:07 -04:00
parent c0890bfbc1
commit 58ad146a4e

@ -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: