Skip to content
Snippets Groups Projects
Commit f07e6a31 authored by Craig Tiller's avatar Craig Tiller
Browse files

Undo experimental change

parent 8d322776
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment