aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/load_reporting
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2017-06-12 08:29:17 -0700
committerGravatar GitHub <noreply@github.com>2017-06-12 08:29:17 -0700
commit696560cf35a49a0e92249ea92fda67fafcf144c5 (patch)
treed9c65fd67271328cf9ce7b61d61e8582dfd374d7 /src/core/ext/filters/load_reporting
parentc7d9c804966d12d852d08f4f132c716846a10ece (diff)
parent8d5e60b8787d1a6aefca037a08799f58a22aa78d (diff)
Merge pull request #11391 from markdroth/channel_args_helpers
Add helpers for creating channel args.
Diffstat (limited to 'src/core/ext/filters/load_reporting')
-rw-r--r--src/core/ext/filters/load_reporting/load_reporting.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/ext/filters/load_reporting/load_reporting.c b/src/core/ext/filters/load_reporting/load_reporting.c
index a97322ee1d..9745763c91 100644
--- a/src/core/ext/filters/load_reporting/load_reporting.c
+++ b/src/core/ext/filters/load_reporting/load_reporting.c
@@ -50,11 +50,7 @@ static bool maybe_add_load_reporting_filter(grpc_exec_ctx *exec_ctx,
}
grpc_arg grpc_load_reporting_enable_arg() {
- grpc_arg arg;
- arg.type = GRPC_ARG_INTEGER;
- arg.key = GRPC_ARG_ENABLE_LOAD_REPORTING;
- arg.value.integer = 1;
- return arg;
+ return grpc_channel_arg_integer_create(GRPC_ARG_ENABLE_LOAD_REPORTING, 1);
}
/* Plugin registration */