Skip to content

Commit

Permalink
Put timeout in RPC call, not protobuf object (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccorm4 authored Nov 21, 2023
1 parent 80c1d89 commit 2a125ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/library/tritonclient/grpc/aio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ async def get_inference_statistics(
if type(model_version) != str:
raise_error("model version must be a string")
request = service_pb2.ModelStatisticsRequest(
name=model_name, version=model_version, timeout=client_timeout
name=model_name, version=model_version
)
if self._verbose:
print(
Expand All @@ -366,7 +366,7 @@ async def get_inference_statistics(
)
)
response = await self._client_stub.ModelStatistics(
request=request, metadata=metadata
request=request, metadata=metadata, timeout=client_timeout
)
if self._verbose:
print(response)
Expand Down

0 comments on commit 2a125ee

Please sign in to comment.