Skip to content

Commit

Permalink
feat: deprecate async_timeout
Browse files Browse the repository at this point in the history
* async_timeout is now integrated to Python's builtin asyncio
  • Loading branch information
kyujin-cho committed Apr 26, 2024
1 parent 80f010f commit a53e924
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ install_requires =
protobuf~=4.25.3
grpcio==1.62.2
grpcio-tools==1.62.2
async-timeout~=4.0.0
zip_safe = false
include_package_data = true

Expand Down
3 changes: 1 addition & 2 deletions src/etcetra/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
TypeVar,
Union,
)
from async_timeout import timeout

import grpc
from grpc.aio import (
Expand Down Expand Up @@ -1617,7 +1616,7 @@ async def __aenter__(self) -> None:
else:
self._lease_id = None
try:
async with timeout(self.timeout_seconds):
async with asyncio.timeout(self.timeout_seconds):
response = await stub.Lock(
v3lock_pb2.LockRequest(
name=self.name.encode(self.encoding),
Expand Down

0 comments on commit a53e924

Please sign in to comment.