Skip to content

Commit

Permalink
fix compile send_op on mac (#9360)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesqiao committed Mar 26, 2018
1 parent 1b0a17f commit 4f522fa
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions paddle/fluid/operators/detail/grpc_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ bool RPCClient::AsyncSendVariable(const std::string& ep,
s->Prepare(var_h, time_out);
s->response_call_back_ = NULL;

auto call = std::move(s->stub_g_.PrepareUnaryCall(
s->context_.get(), "/sendrecv.SendRecvService/SendVariable", req,
&cq_));
auto call = s->stub_g_.PrepareUnaryCall(
s->context_.get(), "/sendrecv.SendRecvService/SendVariable", req, &cq_);
call->StartCall();
call->Finish(&s->reply_, &s->status_, (void*)s);
});
Expand Down Expand Up @@ -107,8 +106,8 @@ bool RPCClient::AsyncGetVariable(const std::string& ep,
::grpc::ByteBuffer buf;
RequestToByteBuffer<sendrecv::VariableMessage>(req, &buf);

auto call = std::move(s->stub_g_.PrepareUnaryCall(
s->context_.get(), "/sendrecv.SendRecvService/GetVariable", buf, &cq_));
auto call = s->stub_g_.PrepareUnaryCall(
s->context_.get(), "/sendrecv.SendRecvService/GetVariable", buf, &cq_);
call->StartCall();
call->Finish(&s->reply_, &s->status_, (void*)s);
});
Expand Down

0 comments on commit 4f522fa

Please sign in to comment.