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

Commit 21d7771

Browse files
committed
update grpc_handler to match proto updates
1 parent eaae0f3 commit 21d7771

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

test_proxy/handlers/grpc_handler.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def ReadRows(self, request, context, client_response=None):
7878
status = Status(code=5, message=client_response["error"])
7979
else:
8080
rows = [data_pb2.Row(**d) for d in client_response]
81-
result = test_proxy_pb2.RowsResult(row=rows, status=status)
81+
result = test_proxy_pb2.RowsResult(rows=rows, status=status)
8282
return result
8383

8484
@delegate_to_client_handler
@@ -122,8 +122,7 @@ def BulkMutateRows(self, request, context, client_response=None):
122122
code=client_response.get("code", 5),
123123
message=client_response["error"],
124124
)
125-
# TODO: protos were updated. entry is now entries: https://github.com/googleapis/cndb-client-testing-protos/commit/e6205a2bba04acc10d12421a1402870b4a525fb3
126-
response = test_proxy_pb2.MutateRowsResult(status=status, entry=entries)
125+
response = test_proxy_pb2.MutateRowsResult(status=status, entries=entries)
127126
return response
128127

129128
@delegate_to_client_handler
@@ -172,8 +171,7 @@ def SampleRowKeys(self, request, context, client_response=None):
172171
offset_bytes=sample[1], row_key=sample[0]
173172
)
174173
)
175-
# TODO: protos were updated. sample is now samples: https://github.com/googleapis/cndb-client-testing-protos/commit/e6205a2bba04acc10d12421a1402870b4a525fb3
176-
return test_proxy_pb2.SampleRowKeysResult(status=status, sample=sample_list)
174+
return test_proxy_pb2.SampleRowKeysResult(status=status, samples=sample_list)
177175

178176
@delegate_to_client_handler
179177
def ExecuteQuery(self, request, context, client_response=None):

0 commit comments

Comments
 (0)