Skip to content
Snippets Groups Projects
Commit bb017c55 authored by Yang Gao's avatar Yang Gao
Browse files

should use c_str

parent 76b693f6
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ Call Channel::CreateCall(const RpcMethod &method, ClientContext *context, ...@@ -84,7 +84,7 @@ Call Channel::CreateCall(const RpcMethod &method, ClientContext *context,
grpc_channel_create_call( grpc_channel_create_call(
c_channel_, cq->cq(), method.name(), c_channel_, cq->cq(), method.name(),
context->authority().empty() ? target_.c_str() context->authority().empty() ? target_.c_str()
: context->authority(), : context->authority().c_str(),
context->RawDeadline()); context->RawDeadline());
context->set_call(c_call); context->set_call(c_call);
return Call(c_call, this, cq); return Call(c_call, this, cq);
......
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