Skip to content

Commit a676152

Browse files
committed
ongoing
1 parent 50b58b9 commit a676152

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/service-library/src/servicelib/redis/_semaphore.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,10 @@ async def acquire(self) -> bool:
189189
"""
190190

191191
ttl_seconds = int(self.ttl.total_seconds())
192-
blocking_timeout_seconds = 1
192+
blocking_timeout_seconds = 0.001
193193
if self.blocking:
194194
blocking_timeout_seconds = (
195-
int(self.blocking_timeout.total_seconds())
196-
if self.blocking_timeout
197-
else 60
195+
self.blocking_timeout.total_seconds() if self.blocking_timeout else 0
198196
)
199197

200198
# Execute the Lua scripts atomically

0 commit comments

Comments
 (0)