feat: crap

This commit is contained in:
2024-11-05 00:38:48 +03:00
parent 1ac664362e
commit 2e0d5f0944
6 changed files with 43 additions and 13 deletions

View File

@@ -68,6 +68,8 @@ class BatchLimiter:
keys = []
async for key in redis.scan_iter('*_lock*'):
keys.append(key)
if not keys:
return
await redis.delete(*keys)
async def acquire_wildberries(self, key):