mix fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import asyncio
|
||||
import logging
|
||||
from datetime import datetime
|
||||
|
||||
from redis import asyncio as aioredis
|
||||
@@ -51,7 +52,7 @@ class BatchLimiter:
|
||||
await redis.set(key, 1)
|
||||
await redis.set(f"{key}:start_time", datetime.now().isoformat())
|
||||
except aioredis.RedisError as e:
|
||||
print(f"Redis error: {e}")
|
||||
logging.error(f"Redis error: {e}")
|
||||
await asyncio.sleep(1)
|
||||
|
||||
async def acquire_wildberries(self, key):
|
||||
|
||||
Reference in New Issue
Block a user