diff options
author | David Garcia Quintas <dgq@google.com> | 2015-06-18 17:24:44 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2015-06-19 13:01:52 -0700 |
commit | 5927aec9b72dba7694218501e2f93d6c127776af (patch) | |
tree | e792735554d907c139ec7c6cfa073a959fd05825 /src/core/surface/secure_channel_create.c | |
parent | f9b803ee2c036222f85da39aa3d8365da9c9f861 (diff) |
Added generated configs
Diffstat (limited to 'src/core/surface/secure_channel_create.c')
-rw-r--r-- | src/core/surface/secure_channel_create.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/surface/secure_channel_create.c b/src/core/surface/secure_channel_create.c index 8b39934881..4c94e29e30 100644 --- a/src/core/surface/secure_channel_create.c +++ b/src/core/surface/secure_channel_create.c @@ -42,6 +42,7 @@ #include "src/core/channel/channel_args.h" #include "src/core/channel/client_channel.h" #include "src/core/channel/client_setup.h" +#include "src/core/channel/compress_filter.h" #include "src/core/channel/connected_channel.h" #include "src/core/channel/http_client_filter.h" #include "src/core/iomgr/resolve_address.h" @@ -239,6 +240,10 @@ grpc_channel *grpc_secure_channel_create(grpc_credentials *creds, 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_client_channel_filter; GPR_ASSERT(n <= MAX_FILTERS); channel = grpc_channel_create_from_filters(filters, n, args_copy, mdctx, 1); |