No need to do an extra read
diff --git a/test/cpp/qps/client_sync.cc b/test/cpp/qps/client_sync.cc
index 1e14aa8..e4ee45a 100644
--- a/test/cpp/qps/client_sync.cc
+++ b/test/cpp/qps/client_sync.cc
@@ -108,13 +108,10 @@
if (stream_) {
SimpleResponse response;
stream_->WritesDone();
- EXPECT_FALSE(stream_->Read(&response));
-
- Status s = stream_->Finish();
- EXPECT_TRUE(s.IsOk());
+ EXPECT_TRUE(stream_->Finish().IsOk());
}
}
-
+
void ThreadFunc(Histogram* histogram, size_t thread_idx) GRPC_OVERRIDE {
double start = Timer::Now();
EXPECT_TRUE(stream_->Write(request_));
@@ -123,7 +120,8 @@
}
private:
grpc::ClientContext context_;
- std::unique_ptr<grpc::ClientReaderWriter<SimpleRequest,SimpleResponse>> stream_;
+ std::unique_ptr<grpc::ClientReaderWriter<SimpleRequest,
+ SimpleResponse>> stream_;
};
std::unique_ptr<Client>