feat: debug

This commit is contained in:
2024-10-21 13:14:02 +03:00
parent 36dbce69c0
commit 7daf029a1d

View File

@@ -26,6 +26,7 @@ class BatchLimiter:
async def acquire(self, key, max_requests, period):
redis = await RedisConnectionManager.get_redis_connection()
while True:
logging.info(f'Getting key: {key}')
async with redis.lock(f"{key}_lock"):
try:
start_time = await redis.get(f"{key}:start_time")