Always include compression filter in channel creation

pull/2135/head
David Garcia Quintas 10 years ago
parent b910170667
commit 331d2da2a7
  1. 5
      src/core/surface/channel_create.c

@ -203,10 +203,7 @@ grpc_channel *grpc_channel_create(const char *target,
if (grpc_channel_args_is_census_enabled(args)) {
filters[n++] = &grpc_client_census_filter;
} */
if (grpc_channel_args_get_compression_level(args) >
GRPC_COMPRESS_LEVEL_NONE) {
filters[n++] = &grpc_compress_filter;
}
filters[n++] = &grpc_compress_filter;
filters[n++] = &grpc_client_channel_filter;
GPR_ASSERT(n <= MAX_FILTERS);
channel = grpc_channel_create_from_filters(filters, n, args, mdctx, 1);

Loading…
Cancel
Save