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();
|
Object policyConfig = resolvedAddresses.getLoadBalancingPolicyConfig();
|
||||||
for (EquivalentAddressGroup eag : addresses) {
|
for (EquivalentAddressGroup eag : addresses) {
|
||||||
EquivalentAddressGroup strippedEag = stripAttrs(eag); // keys need to be just addresses
|
EquivalentAddressGroup strippedEag = stripAttrs(eag); // keys need to be just addresses
|
||||||
ChildLbState childLbState = childLbMap.getOrDefault(strippedEag,
|
if (!childLbMap.containsKey(strippedEag)) {
|
||||||
createChildLbState(strippedEag, policyConfig, getInitialPicker()));
|
childLbMap.put(strippedEag,
|
||||||
childLbMap.put(strippedEag, childLbState);
|
createChildLbState(strippedEag, policyConfig, getInitialPicker()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return childLbMap;
|
return childLbMap;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue