diff options
author | 2017-07-20 12:07:34 -0700 | |
---|---|---|
committer | 2017-07-20 12:07:34 -0700 | |
commit | 2100101c1beb65d1040f92625cc5009457ba0e59 (patch) | |
tree | 84f55ffa78ececaee329f17f2c972c25b0d5d956 /src/core/ext | |
parent | 2f767ebae9157c02d4fdc401ece2269903e3fcf7 (diff) |
Fix scheduler selection
Diffstat (limited to 'src/core/ext')
-rw-r--r-- | src/core/ext/transport/chttp2/transport/chttp2_transport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.c b/src/core/ext/transport/chttp2/transport/chttp2_transport.c index 66f7e158a8..c2ed2f1bc9 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.c +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.c @@ -877,9 +877,9 @@ void grpc_chttp2_become_writable(grpc_exec_ctx *exec_ctx, static grpc_closure_scheduler *write_scheduler(grpc_chttp2_transport *t, bool early_results_scheduled) { switch (t->opt_target) { - case GRPC_CHTTP2_OPTIMIZE_FOR_LATENCY: - return grpc_executor_scheduler(GRPC_EXECUTOR_SHORT); case GRPC_CHTTP2_OPTIMIZE_FOR_THROUGHPUT: + return grpc_executor_scheduler(GRPC_EXECUTOR_SHORT); + case GRPC_CHTTP2_OPTIMIZE_FOR_LATENCY: return early_results_scheduled ? grpc_executor_scheduler(GRPC_EXECUTOR_SHORT) : grpc_schedule_on_exec_ctx; |