diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2018-06-14 11:13:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-14 11:13:24 -0700 |
commit | 33b77eee7890b7e8a00b256eb501d476feae09db (patch) | |
tree | 215b06cebfe1110ee37ad85ea819f9c580c94acc /src/core/ext/filters/max_age/max_age_filter.cc | |
parent | 49d229b3fcbfe45432c8b6df18e00f49fb104ac5 (diff) | |
parent | 7ea8a60ed0ba4faeeb912e9b76ae1d0a222b3ddf (diff) |
Merge pull request #15758 from grpc/revert-15678-channel-arg-sanity
Revert "Add Type Checking On Channel Args"
Diffstat (limited to 'src/core/ext/filters/max_age/max_age_filter.cc')
-rw-r--r-- | src/core/ext/filters/max_age/max_age_filter.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/ext/filters/max_age/max_age_filter.cc b/src/core/ext/filters/max_age/max_age_filter.cc index bbe4998f00..1fe8288bd0 100644 --- a/src/core/ext/filters/max_age/max_age_filter.cc +++ b/src/core/ext/filters/max_age/max_age_filter.cc @@ -519,12 +519,13 @@ static bool maybe_add_max_age_filter(grpc_channel_stack_builder* builder, void* arg) { const grpc_channel_args* channel_args = grpc_channel_stack_builder_get_channel_arguments(builder); - bool enable = grpc_channel_args_get_integer( - channel_args, GRPC_ARG_MAX_CONNECTION_AGE_MS, - MAX_CONNECTION_AGE_INTEGER_OPTIONS) != INT_MAX || - grpc_channel_args_get_integer( - channel_args, GRPC_ARG_MAX_CONNECTION_IDLE_MS, - MAX_CONNECTION_IDLE_INTEGER_OPTIONS) != INT_MAX; + bool enable = + grpc_channel_arg_get_integer( + grpc_channel_args_find(channel_args, GRPC_ARG_MAX_CONNECTION_AGE_MS), + MAX_CONNECTION_AGE_INTEGER_OPTIONS) != INT_MAX || + grpc_channel_arg_get_integer( + grpc_channel_args_find(channel_args, GRPC_ARG_MAX_CONNECTION_IDLE_MS), + MAX_CONNECTION_IDLE_INTEGER_OPTIONS) != INT_MAX; if (enable) { return grpc_channel_stack_builder_prepend_filter( builder, &grpc_max_age_filter, nullptr, nullptr); |