Revert the change in grpc.h because it's part of C API.

I mistakenly added "const ref" which breaks Android client.
pull/16801/head
Soheil Hassas Yeganeh 6 years ago
parent 5faf1b72ed
commit d6b140df03
  1. 2
      include/grpc/grpc.h
  2. 10
      src/core/lib/surface/channel.cc

@ -211,7 +211,7 @@ GRPCAPI int grpc_channel_support_connectivity_watcher(grpc_channel* channel);
possible values). */
GRPCAPI grpc_call* grpc_channel_create_call(
grpc_channel* channel, grpc_call* parent_call, uint32_t propagation_mask,
grpc_completion_queue* completion_queue, const grpc_slice& method,
grpc_completion_queue* completion_queue, grpc_slice method,
const grpc_slice* host, gpr_timespec deadline, void* reserved);
/** Ping the channels peer (load balanced channels will select one sub-channel

@ -326,10 +326,12 @@ static grpc_call* grpc_channel_create_call_internal(
return call;
}
grpc_call* grpc_channel_create_call(
grpc_channel* channel, grpc_call* parent_call, uint32_t propagation_mask,
grpc_completion_queue* cq, const grpc_slice& method, const grpc_slice* host,
gpr_timespec deadline, void* reserved) {
grpc_call* grpc_channel_create_call(grpc_channel* channel,
grpc_call* parent_call,
uint32_t propagation_mask,
grpc_completion_queue* cq,
grpc_slice method, const grpc_slice* host,
gpr_timespec deadline, void* reserved) {
GPR_ASSERT(!reserved);
grpc_core::ExecCtx exec_ctx;
grpc_call* call = grpc_channel_create_call_internal(

Loading…
Cancel
Save