From e0b73fdabea84b14e0d948ac623bb0c829d75e7f Mon Sep 17 00:00:00 2001 From: Yang Gao Date: Thu, 12 Feb 2015 14:05:47 -0800 Subject: [PATCH] Async client calls should return async interfaces --- src/compiler/cpp_generator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/cpp_generator.cc b/src/compiler/cpp_generator.cc index 4a31ff949e8..6ef2128afd2 100644 --- a/src/compiler/cpp_generator.cc +++ b/src/compiler/cpp_generator.cc @@ -190,7 +190,7 @@ void PrintHeaderClientMethod(google::protobuf::io::Printer *printer, "::grpc::ClientWriter< $Request$>* $Method$(" "::grpc::ClientContext* context, $Response$* response);\n"); printer->Print(*vars, - "::grpc::ClientWriter< $Request$>* $Method$(" + "::grpc::ClientAsyncWriter< $Request$>* $Method$(" "::grpc::ClientContext* context, $Response$* response, " "::grpc::Status *status, " "::grpc::CompletionQueue *cq, void *tag);\n"); @@ -200,7 +200,7 @@ void PrintHeaderClientMethod(google::protobuf::io::Printer *printer, "::grpc::ClientReader< $Response$>* $Method$(" "::grpc::ClientContext* context, const $Request$* request);\n"); printer->Print(*vars, - "::grpc::ClientReader< $Response$>* $Method$(" + "::grpc::ClientAsyncReader< $Response$>* $Method$(" "::grpc::ClientContext* context, const $Request$* request, " "::grpc::CompletionQueue *cq, void *tag);\n"); } else if (BidiStreaming(method)) {