aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-11-03 11:43:39 -0700
committerGravatar Vijay Pai <vpai@google.com>2016-11-04 07:51:24 -0700
commitf2764e76f96558761af97d9ab3257342fe23e42f (patch)
tree69b713b75f6b67b68dd88fd5d3bf72fdbdcc33a6 /test/cpp/qps
parent90102c2bfcf98f842f66567c67cbccbd0ede1d2b (diff)
clang-format
Diffstat (limited to 'test/cpp/qps')
-rw-r--r--test/cpp/qps/client_sync.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/cpp/qps/client_sync.cc b/test/cpp/qps/client_sync.cc
index 3f402b5c36..b1e61865e7 100644
--- a/test/cpp/qps/client_sync.cc
+++ b/test/cpp/qps/client_sync.cc
@@ -138,7 +138,9 @@ class SynchronousUnaryClient final : public SynchronousClient {
class SynchronousStreamingClient final : public SynchronousClient {
public:
SynchronousStreamingClient(const ClientConfig& config)
- : SynchronousClient(config), context_(num_threads_), stream_(num_threads_) {
+ : SynchronousClient(config),
+ context_(num_threads_),
+ stream_(num_threads_) {
for (size_t thread_idx = 0; thread_idx < num_threads_; thread_idx++) {
auto* stub = channels_[thread_idx % channels_.size()].get_stub();
stream_[thread_idx] = stub->StreamingCall(&context_[thread_idx]);
@@ -178,7 +180,9 @@ class SynchronousStreamingClient final : public SynchronousClient {
// These are both conceptually std::vector but cannot be for old compilers
// that expect contained classes to support copy constructors
std::vector<grpc::ClientContext> context_;
- std::vector<std::unique_ptr<grpc::ClientReaderWriter<SimpleRequest, SimpleResponse>>> stream_;
+ std::vector<
+ std::unique_ptr<grpc::ClientReaderWriter<SimpleRequest, SimpleResponse>>>
+ stream_;
};
std::unique_ptr<Client> CreateSynchronousUnaryClient(