Skip to content

Commit 6b51bcb

Browse files
chillaqgthea
andauthored
Update client/src/main/java/io/split/engine/segments/SegmentSynchronizationTaskImp.java
Co-authored-by: gthea <theagaston@gmail.com>
1 parent d633f0a commit 6b51bcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/main/java/io/split/engine/segments/SegmentSynchronizationTaskImp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ public boolean isRunning() {
140140
}
141141

142142
public void fetchAll(boolean addCacheHeader) {
143-
_splitCacheConsumer.getSegments().forEach(this::initialize);
144-
_ruleBasedSegmentCacheConsumer.getSegments().forEach(this::initialize);
143+
Set<String> names = getSegmentNames();
144+
names.forEach(this::initialize);
145145
for (Map.Entry<String, SegmentFetcher> entry : _segmentFetchers.entrySet()) {
146146
SegmentFetcher fetcher = entry.getValue();
147147

0 commit comments

Comments
 (0)