diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-03 15:04:42 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-03 15:04:42 -0700 |
commit | f07e6a3136726ce28d6db9f00bf93817458d7742 (patch) | |
tree | cf9a9a64ed27c81e0d37eaf1a397fcf1749c5937 /src/core | |
parent | 8d322776f681f274603d4d9c7ff6347141e3a8da (diff) |
Undo experimental change
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/surface/init.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/core/lib/surface/init.c b/src/core/lib/surface/init.c index dc257a34e4..91bd014a0e 100644 --- a/src/core/lib/surface/init.c +++ b/src/core/lib/surface/init.c @@ -106,22 +106,6 @@ static bool maybe_add_http_filter(grpc_exec_ctx *exec_ctx, return true; } -typedef struct { - const grpc_channel_filter *filter; - const char *controlling_channel_arg; - bool default_on; -} maybe_prepend_filter_args; - -static const maybe_prepend_filter_args message_size_args = { - &grpc_message_size_filter, NULL, true}; - -static bool maybe_prepend_filter(grpc_exec_ctx *exec_ctx, - grpc_channel_stack_builder *builder, - void *arg) { - return grpc_channel_stack_builder_prepend_filter( - builder, (const grpc_channel_filter *)arg, NULL, NULL); -} - static void register_builtin_channel_init() { grpc_channel_init_register_stage( GRPC_CLIENT_DIRECT_CHANNEL, GRPC_CHANNEL_INIT_BUILTIN_PRIORITY, @@ -131,7 +115,7 @@ static void register_builtin_channel_init() { (void *)&grpc_server_deadline_filter); grpc_channel_init_register_stage( GRPC_CLIENT_SUBCHANNEL, GRPC_CHANNEL_INIT_BUILTIN_PRIORITY, - maybe_prepend_filter, (void *)&message_size_args); + prepend_filter, (void *)&grpc_message_size_filter); grpc_channel_init_register_stage( GRPC_CLIENT_DIRECT_CHANNEL, GRPC_CHANNEL_INIT_BUILTIN_PRIORITY, prepend_filter, (void *)&grpc_message_size_filter); |