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

Address reviewer comment by not having non-const reference

parent 36403af7
No related branches found
No related tags found
No related merge requests found
...@@ -179,10 +179,9 @@ class AsyncClient : public Client { ...@@ -179,10 +179,9 @@ class AsyncClient : public Client {
int t = 0; int t = 0;
for (int i = 0; i < config.outstanding_rpcs_per_channel(); i++) { for (int i = 0; i < config.outstanding_rpcs_per_channel(); i++) {
for (int ch = 0; ch < channel_count_; ch++) { for (int ch = 0; ch < channel_count_; ch++) {
auto& channel = channels_[ch];
auto* cq = cli_cqs_[t].get(); auto* cq = cli_cqs_[t].get();
t = (t + 1) % cli_cqs_.size(); t = (t + 1) % cli_cqs_.size();
auto ctx = setup_ctx(ch, channel.get_stub(), request_); auto ctx = setup_ctx(ch, channels_[ch].get_stub(), request_);
if (closed_loop_) { if (closed_loop_) {
ctx->Start(cq); ctx->Start(cq);
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment