remove lock

This commit is contained in:
2024-04-30 11:28:13 +03:00
parent 7dc6df0182
commit 0f16bff9ac
2 changed files with 14 additions and 21 deletions

View File

@@ -23,11 +23,6 @@ class RedisClient:
with self.cli as cli:
cli.set(f"ruletka_{key}", value)
@contextlib.contextmanager
def lock(self, key):
with self.cli.lock(f"ruletka_{key}"):
yield
redis_client = RedisClient(
settings.REDIS_HOST,