Skip to content

Commit 78cd155

Browse files
committed
Fix RedisLock.renew
1 parent 83c3817 commit 78cd155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sherlock/lock.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def _renew(self) -> bool:
507507
raise LockException("Lock was not set by this process.")
508508

509509
if (
510-
self._release_func(keys=[self._key_name], args=[self._owner, self.expire])
510+
self._renew_func(keys=[self._key_name], args=[self._owner, self.expire])
511511
!= 1
512512
):
513513
return False

0 commit comments

Comments
 (0)