mirror of https://github.com/grpc/grpc-java.git
core: In PF, remove extraneous index.reset()
The index was just reset by updateGroups().
This commit is contained in:
parent
82a8d57396
commit
9762945f81
|
@ -130,9 +130,8 @@ final class PickFirstLeafLoadBalancer extends LoadBalancer {
|
|||
SubchannelData subchannelData = subchannels.get(previousAddress);
|
||||
subchannelData.getSubchannel().updateAddresses(addressIndex.getCurrentEagAsList());
|
||||
return Status.OK;
|
||||
} else {
|
||||
addressIndex.reset(); // Previous ready subchannel not in the new list of addresses
|
||||
}
|
||||
// Previous ready subchannel not in the new list of addresses
|
||||
} else {
|
||||
addressIndex.updateGroups(newImmutableAddressGroups);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue