Skip to content

Commit

Permalink
Else block for locality
Browse files Browse the repository at this point in the history
  • Loading branch information
temawi committed May 7, 2024
1 parent 24b0c7f commit 74f2158
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ public Status acceptResolvedAddresses(ResolvedAddresses resolvedAddresses) {
String locality = resolvedAddresses.getAttributes().get(WeightedTargetLoadBalancer.CHILD_NAME);
if (locality != null) {
this.locality = locality;
} else {
this.locality = "";
}
config =
(WeightedRoundRobinLoadBalancerConfig) resolvedAddresses.getLoadBalancingPolicyConfig();
Expand Down

0 comments on commit 74f2158

Please sign in to comment.