diff options
author | Alistair Veitch <aveitch@google.com> | 2015-08-13 09:59:48 -0700 |
---|---|---|
committer | Alistair Veitch <aveitch@google.com> | 2015-08-13 09:59:48 -0700 |
commit | e6d0ad317ed820b29f709c8273ed3fec7463db11 (patch) | |
tree | d6011b2b106da184fb8b41a6bb480a24efbd7026 /src/core/census/grpc_context.c | |
parent | a924b31d28ad907ebc040dd63945356011f613f6 (diff) |
add all new content
Diffstat (limited to 'src/core/census/grpc_context.c')
-rw-r--r-- | src/core/census/grpc_context.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/core/census/grpc_context.c b/src/core/census/grpc_context.c index 11f1eb3d5d..429f3ec9db 100644 --- a/src/core/census/grpc_context.c +++ b/src/core/census/grpc_context.c @@ -35,24 +35,11 @@ #include <grpc/grpc.h> #include "src/core/surface/call.h" -static void grpc_census_context_destroy(void *context) { - census_context_destroy((census_context *)context); -} - void grpc_census_call_set_context(grpc_call *call, census_context *context) { if (census_enabled() == CENSUS_FEATURE_NONE) { return; } - if (context == NULL) { - if (grpc_call_is_client(call)) { - census_context *context_ptr; - census_context_deserialize(NULL, &context_ptr); - grpc_call_context_set(call, GRPC_CONTEXT_TRACING, context_ptr, - grpc_census_context_destroy); - } else { - /* TODO(aveitch): server side context code to be implemented. */ - } - } else { + if (context != NULL) { grpc_call_context_set(call, GRPC_CONTEXT_TRACING, context, NULL); } } |