sleep-fix
All checks were successful
deploy / deploy (push) Successful in 1m15s

This commit is contained in:
Untone 2023-12-23 21:21:40 +03:00
parent 14ef2af9c2
commit 8a255ef545
2 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ ruff = { version = "^0.1.8", python = ">=3.12" }
mypy = { version = "^1.7", python = ">=3.12" } mypy = { version = "^1.7", python = ">=3.12" }
isort = "^5.13.2" isort = "^5.13.2"
pyright = "^1.1.341" pyright = "^1.1.341"
gprof2dot = "^2022.7.29"
[tool.black] [tool.black]
line-length = 120 line-length = 120

View File

@ -61,6 +61,7 @@ class RedisCache:
yield json.loads(message["data"]), message.get("channel") yield json.loads(message["data"]), message.get("channel")
except Exception as e: except Exception as e:
print(f"[servoces.rediscache] Error: {e}") print(f"[servoces.rediscache] Error: {e}")
await asyncio.sleep(1)
redis = RedisCache() redis = RedisCache()