Skip to content

Commit 6d7198f

Browse files
committed
remove weird construction
1 parent 8e7d867 commit 6d7198f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
import logging
55
import socket
66
from collections.abc import Callable, Coroutine
7-
from contextlib import suppress
87
from typing import Any, ParamSpec, TypeVar
98

10-
from common_library.async_tools import cancel_wait_task
11-
129
from ..background_task import periodic
1310
from ..logging_errors import create_troubleshootting_log_kwargs
1411
from ._client import RedisClientSDK
@@ -136,8 +133,6 @@ async def _periodic_renewer() -> None:
136133
result = await work_task
137134

138135
# Cancel renewal task (work is done)
139-
with suppress(TimeoutError):
140-
await cancel_wait_task(renewal_task, max_delay=5)
141136
renewal_task.cancel()
142137

143138
return result

0 commit comments

Comments
 (0)