diff options
author | ncteisen <ncteisen@gmail.com> | 2018-07-18 11:46:06 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-07-18 18:27:15 -0700 |
commit | d47779bc56f5e15b459a8e26fb642b7b6bb4699a (patch) | |
tree | 3661e02639f68cc9fea72d058889fa9043d3af00 /src/core/ext/filters/client_channel/client_channel_channelz.cc | |
parent | af50d795de13009ad0dd4f1419e550f9391d5c71 (diff) | |
download | grpc-grpc-d47779bc56f5e15b459a8e26fb642b7b6bb4699a.tar.gz |
Add child refs support to grpclb
Diffstat (limited to 'src/core/ext/filters/client_channel/client_channel_channelz.cc')
-rw-r--r-- | src/core/ext/filters/client_channel/client_channel_channelz.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ext/filters/client_channel/client_channel_channelz.cc b/src/core/ext/filters/client_channel/client_channel_channelz.cc index d43e9ea67a..4c9c9a6bd6 100644 --- a/src/core/ext/filters/client_channel/client_channel_channelz.cc +++ b/src/core/ext/filters/client_channel/client_channel_channelz.cc @@ -85,12 +85,12 @@ void ClientChannelNode::PopulateChildRefs(grpc_json* json) { grpc_json* array_parent = grpc_json_create_child( nullptr, json, "channelRef", nullptr, GRPC_JSON_ARRAY, false); json_iterator = nullptr; - for (size_t i = 0; i < child_subchannels.size(); ++i) { + for (size_t i = 0; i < child_channels.size(); ++i) { json_iterator = grpc_json_create_child(json_iterator, array_parent, nullptr, nullptr, GRPC_JSON_OBJECT, false); grpc_json_add_number_string_child(json_iterator, nullptr, "channelId", - child_subchannels[i]); + child_channels[i]); } } } |