core: In PF, remove extraneous index.reset()

The index was just reset by updateGroups().
This commit is contained in:
Eric Anderson 2024-08-17 10:58:29 -07:00
parent 82a8d57396
commit 9762945f81
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}