Merge remote-tracking branch 'origin/rewrite' into pillow

This commit is contained in:
2023-09-24 11:37:55 +03:00
4 changed files with 39 additions and 18 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.