mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 01:06:45 +00:00
fix: Remove unnecessary decode statement
Since we create our Redis instance with , we don't need to worry about decoding this value here. Plus this doesn't work in python3 anyway
This commit is contained in:
parent
217e3a13c8
commit
c5b67ea430
@ -26,7 +26,7 @@ class RedisLock:
|
||||
|
||||
def release_lock(self):
|
||||
lock_value = self.redis.get(self.lock_name)
|
||||
if lock_value and lock_value.decode("utf-8") == self.lock_id:
|
||||
if lock_value and lock_value == self.lock_id:
|
||||
self.redis.delete(self.lock_name)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user