googleapis / googleapis/google-cloud-python

pre-compute retry and timeout info for mixin methods

Đang mở
#16,275 1 bình luận 0 reaction 1 người được giao Được @ohmayr nhận Xem trên GitHub
priority: p1 type: feature request
Ngôn ngữ chính
Python
Star
5.4k
Fork
1.8k
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
122

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.