diff options
author | Craig Tiller <ctiller@google.com> | 2016-04-29 08:05:57 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-04-29 08:05:57 -0700 |
commit | 97244d5810e2b0c2b5733094d46d13a061a94424 (patch) | |
tree | 837f965c57d578e83acfe7284035c36172eca066 /test/cpp | |
parent | 5c123fd22b06ddf16d3abea3983d3c998d758bfe (diff) |
clang-format, make code more self-documenting
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/qps/client.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/cpp/qps/client.h b/test/cpp/qps/client.h index 63fc3156e5..175529f01b 100644 --- a/test/cpp/qps/client.h +++ b/test/cpp/qps/client.h @@ -39,8 +39,8 @@ #include <vector> #include <grpc++/support/byte_buffer.h> -#include <grpc++/support/slice.h> #include <grpc++/support/channel_arguments.h> +#include <grpc++/support/slice.h> #include <grpc/support/log.h> #include <grpc/support/time.h> @@ -304,16 +304,17 @@ class ClientImpl : public Client { } void init(const grpc::string& target, const ClientConfig& config, std::function<std::unique_ptr<StubType>(std::shared_ptr<Channel>)> - create_stub, int shard) { + create_stub, + int shard) { // We have to use a 2-phase init like this with a default // constructor followed by an initializer function to make // old compilers happy with using this in std::vector ChannelArguments args; - args.SetInt("shard", shard); + args.SetInt("shard_to_ensure_no_subchannel_merges", shard); channel_ = CreateTestChannel( target, config.security_params().server_host_override(), - config.has_security_params(), - !config.security_params().use_test_ca(), std::shared_ptr<CallCredentials>(), args); + config.has_security_params(), !config.security_params().use_test_ca(), + std::shared_ptr<CallCredentials>(), args); stub_ = create_stub(channel_); } Channel* get_channel() { return channel_.get(); } |