mirror of https://github.com/grpc/grpc-java.git
parent
7d9b76e330
commit
0c415e8784
|
|
@ -111,9 +111,10 @@ public abstract class MultiChildLoadBalancer extends LoadBalancer {
|
|||
Object policyConfig = resolvedAddresses.getLoadBalancingPolicyConfig();
|
||||
for (EquivalentAddressGroup eag : addresses) {
|
||||
EquivalentAddressGroup strippedEag = stripAttrs(eag); // keys need to be just addresses
|
||||
ChildLbState childLbState = childLbMap.getOrDefault(strippedEag,
|
||||
createChildLbState(strippedEag, policyConfig, getInitialPicker()));
|
||||
childLbMap.put(strippedEag, childLbState);
|
||||
if (!childLbMap.containsKey(strippedEag)) {
|
||||
childLbMap.put(strippedEag,
|
||||
createChildLbState(strippedEag, policyConfig, getInitialPicker()));
|
||||
}
|
||||
}
|
||||
return childLbMap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue