Skip to content

Commit

Permalink
Fix RedisLock.renew
Browse files Browse the repository at this point in the history
  • Loading branch information
judahrand committed Feb 18, 2023
1 parent 83c3817 commit 78cd155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sherlock/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def _renew(self) -> bool:
raise LockException("Lock was not set by this process.")

if (
self._release_func(keys=[self._key_name], args=[self._owner, self.expire])
self._renew_func(keys=[self._key_name], args=[self._owner, self.expire])
!= 1
):
return False
Expand Down

0 comments on commit 78cd155

Please sign in to comment.