More reverting

pull/4274/head
Hongyu Chen 9 years ago
parent 3f96667139
commit 0504a4443f
  1. 2
      include/grpc++/client_context.h
  2. 1
      src/cpp/client/channel.cc
  3. 4
      src/cpp/server/server_context.cc

@ -37,7 +37,7 @@
/// side.
/// - Control call settings such as compression and authentication.
/// - Initial and trailing metadata coming from the server.
/// - Get performace metrics (ie, census).
/// - Get performance metrics (ie, census).
///
/// Context settings are only relevant to the call they are invoked with, that
/// is to say, they aren't sticky. Some of these settings, such as the

@ -77,6 +77,7 @@ Call Channel::CreateCall(const RpcMethod& method, ClientContext* context,
cq->cq(), method.name(), host_str,
context->raw_deadline(), nullptr);
}
grpc_census_call_set_context(c_call, context->census_context());
context->set_call(c_call, shared_from_this());
return Call(c_call, this, cq);
}

@ -214,4 +214,8 @@ grpc::string ServerContext::peer() const {
return peer;
}
const struct census_context* ServerContext::census_context() const {
return grpc_census_call_get_context(call_);
}
} // namespace grpc

Loading…
Cancel
Save