Skip to content

Commit 6f63613

Browse files
committed
clean
1 parent 6a8a978 commit 6f63613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ async def _periodic_reacquisition(
450450
started: asyncio.Event,
451451
cancellation_event: asyncio.Event,
452452
) -> None:
453-
if cancellation_event.is_set() or asyncio.current_task().cancelled():
453+
if cancellation_event.is_set():
454454
raise asyncio.CancelledError
455455
if not started.is_set():
456456
started.set()

0 commit comments

Comments
 (0)