Skip to content

Commit

Permalink
core: Outlier detection to use acceptResolvedAddresses()
Browse files Browse the repository at this point in the history
Use this instead of the deprecated handleResolvedAddresses() when
calling the switchLb.
  • Loading branch information
temawi committed Jun 16, 2023
1 parent 48192db commit 2759a1f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,9 @@ public boolean acceptResolvedAddresses(ResolvedAddresses resolvedAddresses) {
trackerMap.cancelTracking();
}

switchLb.handleResolvedAddresses(
return switchLb.acceptResolvedAddresses(
resolvedAddresses.toBuilder().setLoadBalancingPolicyConfig(config.childPolicy.getConfig())
.build());
return true;
}

@Override
Expand Down

0 comments on commit 2759a1f

Please sign in to comment.