core: [outlier detection] Get addresses from subchannel args. (#9468)

This commit is contained in:
Terry Wilson 2022-08-22 11:12:51 -07:00 committed by GitHub
parent f5670b39c4
commit fbefdf5ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ public final class OutlierDetectionLoadBalancer extends LoadBalancer {
// 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));