fix(logger): Livelogging ratelimit prevention.

This commit is contained in:
2023-09-24 11:22:17 +03:00
parent fe0d120907
commit a7663f9267
2 changed files with 26 additions and 11 deletions

View File

@@ -80,6 +80,10 @@ class Bucket:
self._last_full = False
self._level += 1
def fill(self):
self._leak()
self._level = max(self._level, self.max_level + 1)
async def wait(self):
"""
Wait until the bucket has room.