Skip to content

Commit

Permalink
core: [outlier detection] Get addresses from subchannel args. (grpc#9468
Browse files Browse the repository at this point in the history
)
  • Loading branch information
temawi committed Aug 22, 2022
1 parent ac20c19 commit 7c00652
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -204,7 +204,7 @@ public Subchannel createSubchannel(CreateSubchannelArgs args) {

// If the subchannel is associated with a single address that is also already in the map
// the subchannel will be added to the map and be included in outlier detection.
List<EquivalentAddressGroup> addressGroups = subchannel.getAllAddresses();
List<EquivalentAddressGroup> addressGroups = args.getAddresses();
if (hasSingleAddress(addressGroups)
&& trackerMap.containsKey(addressGroups.get(0).getAddresses().get(0))) {
AddressTracker tracker = trackerMap.get(addressGroups.get(0).getAddresses().get(0));
Expand Down

0 comments on commit 7c00652

Please sign in to comment.