Skip to content
Snippets Groups Projects
Commit 331d2da2 authored by David Garcia Quintas's avatar David Garcia Quintas
Browse files

Always include compression filter in channel creation

parent b9101706
No related branches found
No related tags found
No related merge requests found
...@@ -203,10 +203,7 @@ grpc_channel *grpc_channel_create(const char *target, ...@@ -203,10 +203,7 @@ grpc_channel *grpc_channel_create(const char *target,
if (grpc_channel_args_is_census_enabled(args)) { if (grpc_channel_args_is_census_enabled(args)) {
filters[n++] = &grpc_client_census_filter; filters[n++] = &grpc_client_census_filter;
} */ } */
if (grpc_channel_args_get_compression_level(args) > filters[n++] = &grpc_compress_filter;
GRPC_COMPRESS_LEVEL_NONE) {
filters[n++] = &grpc_compress_filter;
}
filters[n++] = &grpc_client_channel_filter; filters[n++] = &grpc_client_channel_filter;
GPR_ASSERT(n <= MAX_FILTERS); GPR_ASSERT(n <= MAX_FILTERS);
channel = grpc_channel_create_from_filters(filters, n, args, mdctx, 1); channel = grpc_channel_create_from_filters(filters, n, args, mdctx, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment