diff options
-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; |