Skip to content
Snippets Groups Projects
Commit 0504a444 authored by Hongyu Chen's avatar Hongyu Chen
Browse files

More reverting

parent 3f966671
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment