Switch a push_back to emplace_back to avoid being interpreted

as a copy constructor
pull/2771/head
vjpai 9 years ago
parent a9e08303d7
commit e88bb07895
  1. 3
      test/cpp/qps/client.h

@ -71,8 +71,7 @@ class Client {
explicit Client(const ClientConfig& config) explicit Client(const ClientConfig& config)
: timer_(new Timer), interarrival_timer_() { : timer_(new Timer), interarrival_timer_() {
for (int i = 0; i < config.client_channels(); i++) { for (int i = 0; i < config.client_channels(); i++) {
channels_.push_back(ClientChannelInfo( channels_.emplace_back(config.server_targets(i % config.server_targets_size()), config);
config.server_targets(i % config.server_targets_size()), config));
} }
request_.set_response_type(grpc::testing::PayloadType::COMPRESSABLE); request_.set_response_type(grpc::testing::PayloadType::COMPRESSABLE);
request_.set_response_size(config.payload_size()); request_.set_response_size(config.payload_size());

Loading…
Cancel
Save