Fixing trailing metadata ops.

pull/15809/head
Vizerai 7 years ago
parent d8772cf88f
commit c0d251a10e
  1. 6
      src/cpp/ext/filters/census/client_filter.cc

@ -119,8 +119,10 @@ void CensusClientCallData::StartTransportStreamOpBatch(
}
if (op->recv_trailing_metadata() != nullptr) {
recv_trailing_metadata_ = op->recv_trailing_metadata()->batch();
initial_on_done_recv_trailing_metadata_ = op->on_complete();
op->set_on_complete(&on_done_recv_trailing_metadata_);
initial_on_done_recv_trailing_metadata_ =
op->op()->payload->recv_trailing_metadata.recv_trailing_metadata_ready;
op->op()->payload->recv_trailing_metadata.recv_trailing_metadata_ready =
&on_done_recv_trailing_metadata_;
}
// Call next op.
grpc_call_next_op(elem, op->op());

Loading…
Cancel
Save