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_;
ServerInterface* const server_;
ServerContext* const context_;
internal::ServerAsyncStreamingInterface* const stream_;
ServerAsyncStreamingInterface* const stream_;
CompletionQueue* const call_cq_;
ServerCompletionQueue* const notification_cq_;
void* const tag_;

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

Loading…
Cancel
Save