Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 2b35127

Browse files
committed
assign metadata directly
1 parent 50b3e48 commit 2b35127

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google/cloud/bigtable/data/_async/metrics_interceptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def wrapper(self, continuation, client_call_details, request):
5858
operation: "ActiveOperationMetric" = self.operation_map.get(found_operation_id)
5959
if operation:
6060
# create new client_call_details without the operation key
61-
client_call_details = client_call_details._replace(metadata=new_metadata)
61+
client_call_details.metadata = new_metadata
6262
# start a new attempt if not started
6363
if (
6464
operation.state == OperationState.CREATED

0 commit comments

Comments
 (0)