|
|
|
@ -141,6 +141,16 @@ grpc_channel *grpc_channel_create_with_builder( |
|
|
|
|
(grpc_integer_options){GRPC_COMPRESS_LEVEL_NONE, |
|
|
|
|
GRPC_COMPRESS_LEVEL_NONE, |
|
|
|
|
GRPC_COMPRESS_LEVEL_COUNT - 1}); |
|
|
|
|
} else if (0 == strcmp(args->args[i].key, |
|
|
|
|
GRPC_STREAM_COMPRESSION_CHANNEL_DEFAULT_LEVEL)) { |
|
|
|
|
channel->compression_options.default_stream_compression_level.is_set = |
|
|
|
|
true; |
|
|
|
|
channel->compression_options.default_stream_compression_level.level = |
|
|
|
|
(grpc_compression_level)grpc_channel_arg_get_integer( |
|
|
|
|
&args->args[i], |
|
|
|
|
(grpc_integer_options){GRPC_COMPRESS_LEVEL_NONE, |
|
|
|
|
GRPC_COMPRESS_LEVEL_NONE, |
|
|
|
|
GRPC_COMPRESS_LEVEL_COUNT - 1}); |
|
|
|
|
} else if (0 == strcmp(args->args[i].key, |
|
|
|
|
GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM)) { |
|
|
|
|
channel->compression_options.default_algorithm.is_set = true; |
|
|
|
|