mirror of https://github.com/grpc/grpc-java.git
core: [outlier detection] Get addresses from subchannel args. (#9468)
This commit is contained in:
parent
f5670b39c4
commit
fbefdf5ea7
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue