mirror of https://github.com/grpc/grpc-java.git
Update clarifying comment per code review. (#9730)
This commit is contained in:
parent
3e5fa7c5df
commit
e14cba0bae
|
@ -61,8 +61,8 @@ final class PriorityLoadBalancer extends LoadBalancer {
|
||||||
|
|
||||||
// Includes all active and deactivated children. Mutable. New entries are only added from priority
|
// Includes all active and deactivated children. Mutable. New entries are only added from priority
|
||||||
// 0 up to the selected priority. An entry is only deleted 15 minutes after its deactivation.
|
// 0 up to the selected priority. An entry is only deleted 15 minutes after its deactivation.
|
||||||
// Note that because all configuration updates should be atomic, updates to children can happen
|
// Note that calling into a child can cause the child to call back into the LB policy and modify
|
||||||
// outside of the synchronization context. Therefore copy values before looping over them.
|
// the map. Therefore copy values before looping over them.
|
||||||
private final Map<String, ChildLbState> children = new HashMap<>();
|
private final Map<String, ChildLbState> children = new HashMap<>();
|
||||||
|
|
||||||
// Following fields are only null initially.
|
// Following fields are only null initially.
|
||||||
|
|
Loading…
Reference in New Issue