Skip to content

Commit 9762945

Browse files
committed
core: In PF, remove extraneous index.reset()
The index was just reset by updateGroups().
1 parent 82a8d57 commit 9762945

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/java/io/grpc/internal/PickFirstLeafLoadBalancer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,8 @@ public Status acceptResolvedAddresses(ResolvedAddresses resolvedAddresses) {
130130
SubchannelData subchannelData = subchannels.get(previousAddress);
131131
subchannelData.getSubchannel().updateAddresses(addressIndex.getCurrentEagAsList());
132132
return Status.OK;
133-
} else {
134-
addressIndex.reset(); // Previous ready subchannel not in the new list of addresses
135133
}
134+
// Previous ready subchannel not in the new list of addresses
136135
} else {
137136
addressIndex.updateGroups(newImmutableAddressGroups);
138137
}

0 commit comments

Comments
 (0)