Async client calls should return async interfaces

pull/501/head
Yang Gao 10 years ago
parent 0b18a8bd4c
commit e0b73fdabe
  1. 4
      src/compiler/cpp_generator.cc

@ -190,7 +190,7 @@ void PrintHeaderClientMethod(google::protobuf::io::Printer *printer,
"::grpc::ClientWriter< $Request$>* $Method$(" "::grpc::ClientWriter< $Request$>* $Method$("
"::grpc::ClientContext* context, $Response$* response);\n"); "::grpc::ClientContext* context, $Response$* response);\n");
printer->Print(*vars, printer->Print(*vars,
"::grpc::ClientWriter< $Request$>* $Method$(" "::grpc::ClientAsyncWriter< $Request$>* $Method$("
"::grpc::ClientContext* context, $Response$* response, " "::grpc::ClientContext* context, $Response$* response, "
"::grpc::Status *status, " "::grpc::Status *status, "
"::grpc::CompletionQueue *cq, void *tag);\n"); "::grpc::CompletionQueue *cq, void *tag);\n");
@ -200,7 +200,7 @@ void PrintHeaderClientMethod(google::protobuf::io::Printer *printer,
"::grpc::ClientReader< $Response$>* $Method$(" "::grpc::ClientReader< $Response$>* $Method$("
"::grpc::ClientContext* context, const $Request$* request);\n"); "::grpc::ClientContext* context, const $Request$* request);\n");
printer->Print(*vars, printer->Print(*vars,
"::grpc::ClientReader< $Response$>* $Method$(" "::grpc::ClientAsyncReader< $Response$>* $Method$("
"::grpc::ClientContext* context, const $Request$* request, " "::grpc::ClientContext* context, const $Request$* request, "
"::grpc::CompletionQueue *cq, void *tag);\n"); "::grpc::CompletionQueue *cq, void *tag);\n");
} else if (BidiStreaming(method)) { } else if (BidiStreaming(method)) {

Loading…
Cancel
Save