We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6173a9f commit d1bd492Copy full SHA for d1bd492
packages/service-library/src/servicelib/redis/_semaphore.py
@@ -270,14 +270,14 @@ async def reacquire(self) -> None:
270
SemaphoreLostError: If the semaphore was lost or expired
271
"""
272
273
- timeout_ms = int(self.ttl.total_seconds() * 1000)
+ ttl_seconds = int(self.ttl.total_seconds())
274
275
# Execute the renewal Lua script atomically
276
result = await self._renew_script(
277
keys=(self.semaphore_key, self.holder_key),
278
args=(
279
self.instance_id,
280
- str(timeout_ms),
+ str(ttl_seconds),
281
),
282
client=self.redis_client.redis,
283
)
0 commit comments