Skip to content

Commit 1ae45e9

Browse files
committed
result->response_payload
1 parent b0e222c commit 1ae45e9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

google/api_core/_rest_streaming_base.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -117,21 +117,21 @@ def _create_grab(self):
117117
if issubclass(self._response_message_cls, proto.Message):
118118

119119
def grab(this):
120-
result = this._ready_objs.popleft()
120+
response_payload = this._ready_objs.popleft()
121121
if logging_enabled: # pragma: NO COVER
122-
self._log_result(result)
122+
self._log_response_payload(response_payload)
123123
return this._response_message_cls.from_json(
124-
result, ignore_unknown_fields=True
124+
response_payload, ignore_unknown_fields=True
125125
)
126126

127127
return grab
128128
elif issubclass(self._response_message_cls, google.protobuf.message.Message):
129129

130130
def grab(this):
131-
result = this._ready_objs.popleft()
131+
response_payload = this._ready_objs.popleft()
132132
if logging_enabled: # pragma: NO COVER
133-
self._log_result(result)
134-
return Parse(result, this._response_message_cls())
133+
self._log_response_payload(response_payload)
134+
return Parse(response_payload, this._response_message_cls())
135135

136136
return grab
137137
else:

0 commit comments

Comments
 (0)