Skip to content
Snippets Groups Projects
Commit e88bb078 authored by vjpai's avatar vjpai
Browse files

Switch a push_back to emplace_back to avoid being interpreted

as a copy constructor
parent a9e08303
No related branches found
No related tags found
No related merge requests found
......@@ -71,8 +71,7 @@ class Client {
explicit Client(const ClientConfig& config)
: timer_(new Timer), interarrival_timer_() {
for (int i = 0; i < config.client_channels(); i++) {
channels_.push_back(ClientChannelInfo(
config.server_targets(i % config.server_targets_size()), config));
channels_.emplace_back(config.server_targets(i % config.server_targets_size()), config);
}
request_.set_response_type(grpc::testing::PayloadType::COMPRESSABLE);
request_.set_response_size(config.payload_size());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment