mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-13 09:19:48 +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:
parent
c0890bfbc1
commit
58ad146a4e
@ -110,9 +110,6 @@ class GatewayRatelimiter:
|
|||||||
return self.per - (current - self.window)
|
return self.per - (current - self.window)
|
||||||
|
|
||||||
self.remaining -= 1
|
self.remaining -= 1
|
||||||
if self.remaining == 0:
|
|
||||||
self.window = current
|
|
||||||
|
|
||||||
return 0.0
|
return 0.0
|
||||||
|
|
||||||
async def block(self) -> None:
|
async def block(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user