aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/channel_create.c
diff options
context:
space:
mode:
authorGravatar Bogdan Drutu <bdrutu@google.com>2016-01-26 19:16:04 -0800
committerGravatar Bogdan Drutu <bdrutu@google.com>2016-01-26 19:16:04 -0800
commit441499ac5e5798447e8fdf7a028f84910e9b8c27 (patch)
tree1a5ea58c56b81e663dfea1e96bde562f23211e1b /src/core/surface/channel_create.c
parent33473134d91c445f9107ee90bd61a594190ad897 (diff)
Fix the initialization by modifying the grpc_channel_args_is_census_enabled to by default return census_enabled() instead of always disable
Diffstat (limited to 'src/core/surface/channel_create.c')
-rw-r--r--src/core/surface/channel_create.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/surface/channel_create.c b/src/core/surface/channel_create.c
index b21f89d00c..49083f0870 100644
--- a/src/core/surface/channel_create.c
+++ b/src/core/surface/channel_create.c
@@ -1,6 +1,6 @@
/*
*
- * Copyright 2015-2016, Google Inc.
+ * Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -36,7 +36,6 @@
#include <stdlib.h>
#include <string.h>
-#include <grpc/census.h>
#include <grpc/support/alloc.h>
#include <grpc/support/slice.h>
#include <grpc/support/slice_buffer.h>
@@ -201,7 +200,7 @@ grpc_channel *grpc_insecure_channel_create(const char *target,
"grpc_insecure_channel_create(target=%p, args=%p, reserved=%p)", 3,
(target, args, reserved));
GPR_ASSERT(!reserved);
- if (grpc_channel_args_is_census_enabled(args) || census_enabled()) {
+ if (grpc_channel_args_is_census_enabled(args)) {
filters[n++] = &grpc_client_census_filter;
}
filters[n++] = &grpc_compress_filter;