From bfb495d026952048c7fee641879deea357075ad8 Mon Sep 17 00:00:00 2001 From: Yuxuan Li <yuxuanli@google.com> Date: Fri, 5 May 2017 10:57:35 -0700 Subject: [PATCH] add override to GetPollCount() function --- test/cpp/qps/client_async.cc | 2 +- test/cpp/qps/server_async.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cpp/qps/client_async.cc b/test/cpp/qps/client_async.cc index 05756f0563..63da1e719d 100644 --- a/test/cpp/qps/client_async.cc +++ b/test/cpp/qps/client_async.cc @@ -209,7 +209,7 @@ class AsyncClient : public ClientImpl<StubType, RequestType> { } } - int GetPollCount() { + int GetPollCount() override { int count = 0; for (auto cq = cli_cqs_.begin(); cq != cli_cqs_.end(); cq++) { count += (int)grpc_get_cq_poll_num((*cq)->cq()); diff --git a/test/cpp/qps/server_async.cc b/test/cpp/qps/server_async.cc index 7d00cb33dc..57f45d325f 100644 --- a/test/cpp/qps/server_async.cc +++ b/test/cpp/qps/server_async.cc @@ -158,7 +158,7 @@ class AsyncQpsServerTest final : public grpc::testing::Server { shutdown_thread.join(); } - int GetPollCount() { + int GetPollCount() override { int count = 0; for (auto cq = srv_cqs_.begin(); cq != srv_cqs_.end(); cq++) { count += (int)grpc_get_cq_poll_num((*cq)->cq()); -- GitLab