googleapis / googleapis/google-cloud-python
pre-compute retry and timeout info for mixin methods
未关闭
priority: p1
type: feature request
- 主要语言
- Python
- 星标
- 5.4k
- 派生
- 1.8k
- 平均合并
- 3 天 4 小时
- 30 天内合并 PR
- 122
描述
The following mixin methods implemented in the async client wrap the retry and timeout information during the method call in the following way:
```
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.get_iam_policy,
default_timeout=None,
client_info=DEFAULT_CLIENT_INFO,
)
```
We should pre-compute the wrapping logic during the transport initialization, similar to what we do for other methods via `_prep_wrapped_messages`. At the very least, we need to make sure that we set the kind property (if available), in `wrap_method` to avoid a gRPC code path in an async rest call.
贡献指南
评估
这个 Issue 还没有评估数据。