aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/channel/channelz.cc
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-07-24 09:41:07 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2018-07-24 09:41:07 -0700
commita8d5c21b8864202e205fc210e369dc72abe606f2 (patch)
tree7a7919d57cdbf984d5037ecc95756df9c478c2c8 /src/core/lib/channel/channelz.cc
parent1dc063c093745279452877861da2bacfcaaea95f (diff)
reviewer feedback
Diffstat (limited to 'src/core/lib/channel/channelz.cc')
-rw-r--r--src/core/lib/channel/channelz.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/lib/channel/channelz.cc b/src/core/lib/channel/channelz.cc
index eec2cd61b2..4fbc441c0a 100644
--- a/src/core/lib/channel/channelz.cc
+++ b/src/core/lib/channel/channelz.cc
@@ -41,9 +41,8 @@
namespace grpc_core {
namespace channelz {
-BaseNode::BaseNode(EntityType type) : type_(type) {
- uuid_ = ChannelzRegistry::Register(this);
-}
+BaseNode::BaseNode(EntityType type)
+ : type_(type), uuid_(ChannelzRegistry::Register(this)) {}
BaseNode::~BaseNode() { ChannelzRegistry::Unregister(uuid_); }