Skip to content

Commit

Permalink
qMerge branch 'SDKS-9072_baseline' into SDKS-9040
Browse files Browse the repository at this point in the history
  • Loading branch information
gthea committed Dec 4, 2024
2 parents f65f0ae + 61c484a commit 48a311f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public RolloutCacheManagerImpl(@NonNull SplitClientConfig splitClientConfig,
@VisibleForTesting
RolloutCacheManagerImpl(@NonNull GeneralInfoStorage generalInfoStorage,
@NonNull RolloutCacheConfiguration config,
@NonNull CleanUpDatabaseTask clean,
@NonNull CleanUpDatabaseTask cleanUpDatabaseTask,
@NonNull EncryptionMigrationTask encryptionMigrationTask,
@NonNull RolloutDefinitionsCache... storages) {
mGeneralInfoStorage = checkNotNull(generalInfoStorage);
mCleanUpDatabaseTask = checkNotNull(clean);
mCleanUpDatabaseTask = checkNotNull(cleanUpDatabaseTask);
mEncryptionMigrationTask = checkNotNull(encryptionMigrationTask);
mStorages = checkNotNull(storages);
mConfig = checkNotNull(config);
Expand Down Expand Up @@ -106,7 +106,7 @@ private boolean validateExpiration() {
return true;
} else if (mConfig.isClearOnInit()) {
long lastCacheClearTimestamp = mGeneralInfoStorage.getRolloutCacheLastClearTimestamp();
if (lastCacheClearTimestamp < 1) {
if (lastCacheClearTimestamp < 1) { // 0 is default value for rollout cache timestamp
return true;
}
long daysSinceCacheClear = TimeUnit.MILLISECONDS.toDays(System.currentTimeMillis() - lastCacheClearTimestamp);
Expand Down

0 comments on commit 48a311f

Please sign in to comment.