diff options
author | Craig Tiller <ctiller@google.com> | 2015-04-16 14:46:41 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-04-16 14:46:41 -0700 |
commit | 205aee1c82ab2182f37017d1b70de7c9eefb898b (patch) | |
tree | 245426e21b61c744361c1e807ac7b81eb0b0e6a0 /src/core/surface/call.c | |
parent | 87d5b19da6f8ce3104ec1a2bc93533f8455d5ac7 (diff) |
Move metadata batching to stream_op
Diffstat (limited to 'src/core/surface/call.c')
-rw-r--r-- | src/core/surface/call.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index bd3374297e..5facaa503d 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -657,7 +657,7 @@ static void enact_send_action(grpc_call *call, send_action sa) { op.data.metadata.garbage.head = op.data.metadata.garbage.tail = NULL; op.data.metadata.deadline = call->send_deadline; for (i = 0; i < call->send_initial_metadata_count; i++) { - grpc_call_op_metadata_link_head(&op.data.metadata, + grpc_metadata_batch_link_head(&op.data.metadata, &call->send_initial_metadata[i]); } op.done_cb = do_nothing; @@ -698,14 +698,14 @@ static void enact_send_action(grpc_call *call, send_action sa) { /* TODO(ctiller): cache common status values */ data = call->request_data[GRPC_IOREQ_SEND_STATUS]; gpr_ltoa(data.send_status.code, status_str); - grpc_call_op_metadata_add_tail( + grpc_metadata_batch_add_tail( &op.data.metadata, &call->status_link, grpc_mdelem_from_metadata_strings( call->metadata_context, grpc_mdstr_ref(grpc_channel_get_status_string(call->channel)), grpc_mdstr_from_string(call->metadata_context, status_str))); if (data.send_status.details) { - grpc_call_op_metadata_add_tail( + grpc_metadata_batch_add_tail( &op.data.metadata, &call->details_link, grpc_mdelem_from_metadata_strings( call->metadata_context, @@ -984,7 +984,7 @@ void grpc_call_recv_message(grpc_call_element *elem, } int grpc_call_recv_metadata(grpc_call_element *elem, - grpc_call_op_metadata *md) { + grpc_metadata_batch *md) { grpc_call *call = CALL_FROM_TOP_ELEM(elem); grpc_linked_mdelem *l; grpc_metadata_array *dest; |