Remove uuid from channel

reviewable/pr13883/r1
ncteisen 7 years ago
parent 9f144ebf5b
commit f41e24b35f
  1. 5
      src/core/lib/surface/channel.cc
  2. 1
      src/core/lib/surface/channel.h

@ -54,7 +54,6 @@ typedef struct registered_call {
} registered_call;
struct grpc_channel {
intptr_t uuid;
int is_client;
grpc_compression_options compression_options;
grpc_mdelem default_authority;
@ -104,7 +103,6 @@ grpc_channel* grpc_channel_create_with_builder(
memset(channel, 0, sizeof(*channel));
channel->target = target;
channel->is_client = grpc_channel_stack_type_is_client(channel_stack_type);
channel->uuid = -1;
channel->tracer = nullptr;
gpr_mu_init(&channel->registered_call_mu);
channel->registered_calls = nullptr;
@ -205,7 +203,6 @@ grpc_channel* grpc_channel_create_with_builder(
if (max_nodes > 0) {
channel->tracer = grpc_core::New<grpc_core::ChannelTracer>(
max_nodes); // TODO(ncteisen): leaky yo
channel->uuid = channel->tracer->GetUuid();
}
}
}
@ -220,8 +217,6 @@ char* grpc_channel_get_trace(grpc_channel* channel, bool recursive) {
return channel->tracer ? channel->tracer->RenderTrace(recursive) : nullptr;
}
intptr_t grpc_channel_get_uuid(grpc_channel* channel) { return channel->uuid; }
grpc_channel* grpc_channel_create(const char* target,
const grpc_channel_args* input_args,
grpc_channel_stack_type channel_stack_type,

@ -59,7 +59,6 @@ size_t grpc_channel_get_call_size_estimate(grpc_channel* channel);
void grpc_channel_update_call_size_estimate(grpc_channel* channel, size_t size);
char* grpc_channel_get_trace(grpc_channel* channel, bool recursive);
intptr_t grpc_channel_get_uuid(grpc_channel* channel);
#ifndef NDEBUG
void grpc_channel_internal_ref(grpc_channel* channel, const char* reason);

Loading…
Cancel
Save