From 191b67437bce58786e2d1a15df6cfeb6e75ba258 Mon Sep 17 00:00:00 2001 From: vjpai Date: Fri, 5 Jun 2015 14:18:42 -0700 Subject: [PATCH] Address reviewer comment by not having non-const reference --- test/cpp/qps/client_async.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/cpp/qps/client_async.cc b/test/cpp/qps/client_async.cc index b0752a97925..a238b60a9c5 100644 --- a/test/cpp/qps/client_async.cc +++ b/test/cpp/qps/client_async.cc @@ -179,10 +179,9 @@ class AsyncClient : public Client { int t = 0; for (int i = 0; i < config.outstanding_rpcs_per_channel(); i++) { for (int ch = 0; ch < channel_count_; ch++) { - auto& channel = channels_[ch]; auto* cq = cli_cqs_[t].get(); 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_) { ctx->Start(cq); } else {