From bc81eee4d4384cb461b587400c3f534be2503e5c Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Tue, 25 Jul 2017 01:51:28 -0700 Subject: [PATCH] Remove a follow-on internal that was added post-internalization, keep the templated QPS worker rather than going back to internal API --- include/grpc++/impl/codegen/server_interface.h | 2 +- test/cpp/qps/server_sync.cc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/grpc++/impl/codegen/server_interface.h b/include/grpc++/impl/codegen/server_interface.h index ef063a9718c..55937f19d7c 100644 --- a/include/grpc++/impl/codegen/server_interface.h +++ b/include/grpc++/impl/codegen/server_interface.h @@ -212,7 +212,7 @@ class ServerInterface : public CallHook { void* const registered_method_; ServerInterface* const server_; ServerContext* const context_; - internal::ServerAsyncStreamingInterface* const stream_; + ServerAsyncStreamingInterface* const stream_; CompletionQueue* const call_cq_; ServerCompletionQueue* const notification_cq_; void* const tag_; diff --git a/test/cpp/qps/server_sync.cc b/test/cpp/qps/server_sync.cc index 07e41817b38..9954e2c0bfc 100644 --- a/test/cpp/qps/server_sync.cc +++ b/test/cpp/qps/server_sync.cc @@ -112,8 +112,8 @@ class BenchmarkServiceImpl final : public BenchmarkService::Service { } private: - static Status ClientPull(ServerContext* context, - ReaderInterface* stream, + template + static Status ClientPull(ServerContext* context, R* stream, SimpleResponse* response) { SimpleRequest request; while (stream->Read(&request)) { @@ -126,8 +126,8 @@ class BenchmarkServiceImpl final : public BenchmarkService::Service { } return Status::OK; } - static Status ServerPush(ServerContext* context, - WriterInterface* stream, + template + static Status ServerPush(ServerContext* context, W* stream, const SimpleResponse& response, std::function done) { while ((done == nullptr) || !done()) {