Skip to content

Commit efd2605

Browse files
chillaqsanzmauro
andauthored
Update client/src/main/java/io/split/engine/experiments/SplitFetcherImp.java
Co-authored-by: Mauro Sanz <51236193+sanzmauro@users.noreply.github.com>
1 parent 3d5b439 commit efd2605

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

client/src/main/java/io/split/engine/experiments/SplitFetcherImp.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,8 @@ private Set<String> runWithoutExceptionHandling(FetchOptions options) throws Int
158158
return segments;
159159
}
160160

161-
private boolean checkExitConditions(SplitChange change) {
162-
return ((change.featureFlags.s != _splitCacheProducer.getChangeNumber() || change.featureFlags.t < _splitCacheProducer.getChangeNumber())
163-
|| (change.ruleBasedSegments.s != _ruleBasedSegmentCacheProducer.getChangeNumber() ||
164-
change.ruleBasedSegments.t < _ruleBasedSegmentCacheProducer.getChangeNumber()));
161+
private <T> boolean checkExitConditions(ChangeDto<T> change, long cn) {
162+
return change.s != cn || change.t < cn;
165163
}
166164

167165
private boolean checkReturnConditions(SplitChange change) {

0 commit comments

Comments
 (0)