From bb5361453f0d0517675bc369ef6e6a5d2f516b90 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 5 Aug 2015 15:18:19 -0700 Subject: C++ context propagation --- src/cpp/client/channel.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/cpp/client/channel.cc') diff --git a/src/cpp/client/channel.cc b/src/cpp/client/channel.cc index 1912e5e4c8..5f54e7fcc1 100644 --- a/src/cpp/client/channel.cc +++ b/src/cpp/client/channel.cc @@ -63,10 +63,12 @@ Call Channel::CreateCall(const RpcMethod& method, ClientContext* context, const char* host_str = host_.empty() ? NULL : host_.c_str(); auto c_call = method.channel_tag() && context->authority().empty() ? grpc_channel_create_registered_call( - c_channel_, NULL, GRPC_PROPAGATE_DEFAULTS, cq->cq(), + c_channel_, context->propagate_from_call_, + context->propagation_options_.c_bitmask(), cq->cq(), method.channel_tag(), context->raw_deadline()) : grpc_channel_create_call( - c_channel_, NULL, GRPC_PROPAGATE_DEFAULTS, cq->cq(), + c_channel_, context->propagate_from_call_, + context->propagation_options_.c_bitmask(), cq->cq(), method.name(), context->authority().empty() ? host_str : context->authority().c_str(), -- cgit v1.2.3