Merge pull request #8660 from jk-f5/fix/decode

Remove unnecessary decode statement from release_lock method
This commit is contained in:
Timothy Jaeryang Baek 2025-01-17 15:25:36 -08:00 committed by GitHub
commit 7519f683ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)