aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp
diff options
context:
space:
mode:
authorGravatar Vizerai <jsking@google.com>2018-06-19 16:21:26 -0700
committerGravatar Vizerai <jsking@google.com>2018-06-19 16:21:26 -0700
commitc0d251a10ed82144958a34b04fd7ed832764a052 (patch)
tree621afc6e9e52945350535a321509a50211fabb2b /src/cpp
parentd8772cf88f3a910160349eb21950dcd9619d1b6a (diff)
Fixing trailing metadata ops.
Diffstat (limited to 'src/cpp')
-rw-r--r--src/cpp/ext/filters/census/client_filter.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cpp/ext/filters/census/client_filter.cc b/src/cpp/ext/filters/census/client_filter.cc
index 293f4b1c25..940d42d100 100644
--- a/src/cpp/ext/filters/census/client_filter.cc
+++ b/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());