Skip to content
Snippets Groups Projects
Commit f0255d4d authored by Craig Tiller's avatar Craig Tiller Committed by GitHub
Browse files

Merge pull request #7095 from ctiller/all_calls_together

Colocate calls for the same channel on the same CQ
parents cc8bb8cc 5b47ac38
No related branches found
No related tags found
No related merge requests found
......@@ -180,14 +180,14 @@ class AsyncClient : public ClientImpl<StubType, RequestType> {
using namespace std::placeholders;
int t = 0;
for (int i = 0; i < config.outstanding_rpcs_per_channel(); i++) {
for (int ch = 0; ch < config.client_channels(); ch++) {
for (int ch = 0; ch < config.client_channels(); ch++) {
for (int i = 0; i < config.outstanding_rpcs_per_channel(); i++) {
auto* cq = cli_cqs_[t].get();
auto ctx =
setup_ctx(channels_[ch].get_stub(), next_issuers_[t], request_);
ctx->Start(cq);
t = (t + 1) % cli_cqs_.size();
}
t = (t + 1) % cli_cqs_.size();
}
}
virtual ~AsyncClient() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment