From 8a5a666ad03b158a32dee787166d7127eedd929c Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 9 Apr 2015 11:31:28 -0700 Subject: Handle errors better on client --- test/cpp/qps/client_async.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/cpp/qps/client_async.cc') diff --git a/test/cpp/qps/client_async.cc b/test/cpp/qps/client_async.cc index b07620140e..fecff5c8ce 100644 --- a/test/cpp/qps/client_async.cc +++ b/test/cpp/qps/client_async.cc @@ -173,7 +173,7 @@ class AsyncUnaryClient GRPC_FINAL : public Client { } } - void ThreadFunc(Histogram* histogram, size_t thread_idx) GRPC_OVERRIDE { + bool ThreadFunc(Histogram* histogram, size_t thread_idx) GRPC_OVERRIDE { void* got_tag; bool ok; cli_cqs_[thread_idx]->Next(&got_tag, &ok); @@ -185,6 +185,8 @@ class AsyncUnaryClient GRPC_FINAL : public Client { ctx->StartNewClone(); delete ctx; } + + return true; } std::vector> cli_cqs_; @@ -301,7 +303,7 @@ class AsyncStreamingClient GRPC_FINAL : public Client { } } - void ThreadFunc(Histogram *histogram, size_t thread_idx) GRPC_OVERRIDE { + bool ThreadFunc(Histogram *histogram, size_t thread_idx) GRPC_OVERRIDE { void *got_tag; bool ok; cli_cqs_[thread_idx]->Next(&got_tag, &ok); @@ -313,6 +315,8 @@ class AsyncStreamingClient GRPC_FINAL : public Client { ctx->StartNewClone(); delete ctx; } + + return true; } std::vector> cli_cqs_; -- cgit v1.2.3