Remove a follow-on internal that was added post-internalization, keep the templated QPS worker rather than going back to internal API

pull/11928/head
Vijay Pai 8 years ago
parent 6abd20020b
commit bc81eee4d4
  1. 2
      include/grpc++/impl/codegen/server_interface.h
  2. 8
      test/cpp/qps/server_sync.cc

@ -212,7 +212,7 @@ class ServerInterface : public CallHook {
void* const registered_method_; void* const registered_method_;
ServerInterface* const server_; ServerInterface* const server_;
ServerContext* const context_; ServerContext* const context_;
internal::ServerAsyncStreamingInterface* const stream_; ServerAsyncStreamingInterface* const stream_;
CompletionQueue* const call_cq_; CompletionQueue* const call_cq_;
ServerCompletionQueue* const notification_cq_; ServerCompletionQueue* const notification_cq_;
void* const tag_; void* const tag_;

@ -112,8 +112,8 @@ class BenchmarkServiceImpl final : public BenchmarkService::Service {
} }
private: private:
static Status ClientPull(ServerContext* context, template <class R>
ReaderInterface<SimpleRequest>* stream, static Status ClientPull(ServerContext* context, R* stream,
SimpleResponse* response) { SimpleResponse* response) {
SimpleRequest request; SimpleRequest request;
while (stream->Read(&request)) { while (stream->Read(&request)) {
@ -126,8 +126,8 @@ class BenchmarkServiceImpl final : public BenchmarkService::Service {
} }
return Status::OK; return Status::OK;
} }
static Status ServerPush(ServerContext* context, template <class W>
WriterInterface<SimpleResponse>* stream, static Status ServerPush(ServerContext* context, W* stream,
const SimpleResponse& response, const SimpleResponse& response,
std::function<bool()> done) { std::function<bool()> done) {
while ((done == nullptr) || !done()) { while ((done == nullptr) || !done()) {

Loading…
Cancel
Save