diff options
author | Jim King <jsking@google.com> | 2018-06-20 04:45:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-20 04:45:52 -0700 |
commit | 7fc8bf5833334a8bbe41d940c9e6038012eb694c (patch) | |
tree | ff5d17a19ee94cd7a80432c2ba4c079df074e4c9 | |
parent | 1ea30c5fcf3f59c0b9437b01daa5d1eaccbb8512 (diff) | |
parent | 97c6648a49a618e6fee79b9d5f6e5f3af393cbec (diff) |
Fixing trailing metadata ops in census filter.
Fixing trailing metadata ops.
-rw-r--r-- | src/cpp/ext/filters/census/client_filter.cc | 6 |
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()); |