remove lock
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user