Skip to content

Commit

Permalink
Revert "Forcing updated data during startup"
Browse files Browse the repository at this point in the history
This reverts commit 8026d50.
  • Loading branch information
lassetyr committed Mar 11, 2024
1 parent 8026d50 commit dfd2b1f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main/java/no/rutebanken/anshar/data/SiriRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,6 @@ protected void enableCache(IMap<SiriObjectStorageKey, T> map) {

protected void enableCache(IMap<SiriObjectStorageKey, T> map, java.util.function.Predicate<T> includeInCachePredicate) {

// Looping through all keys to sync metadata before startup
int sizeBefore = map.localKeySet().size();
int counter = 0;
for (SiriObjectStorageKey key : map.keySet()) {
counter++;
}
int sizeAfter = map.localKeySet().size();
logger.info("Instance started with {} keys (localKeySet.size: before {}, after {})", counter, sizeBefore, sizeAfter);

// Entry added - new data
map.addEntryListener((EntryAddedListener<SiriObjectStorageKey, T>) entryEvent -> {

Expand Down

0 comments on commit dfd2b1f

Please sign in to comment.