Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gthea committed Nov 27, 2024
1 parent a5f7c5e commit a416b0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ class RolloutCacheManagerConfig {
mClearOnInit = clearOnInit;
}

public static RolloutCacheManagerConfig from(SplitClientConfig splitClientConfig) {
static RolloutCacheManagerConfig from(SplitClientConfig splitClientConfig) {
return new RolloutCacheManagerConfig(splitClientConfig.cacheExpirationInSeconds(), splitClientConfig.clearOnInit());
}

public long getCacheExpirationInDays() {
long getCacheExpirationInDays() {
return mCacheExpirationInDays;
}

public boolean isClearOnInit() {
boolean isClearOnInit() {
return mClearOnInit;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;

import java.util.concurrent.TimeUnit;

Expand All @@ -21,15 +20,14 @@

public class RolloutCacheManagerImpl implements RolloutCacheManager, SplitTask {

public static final int MIN_CACHE_CLEAR_DAYS = 1;
public static final int MIN_CACHE_CLEAR_DAYS = 1; // TODO

@NonNull
private final GeneralInfoStorage mGeneralInfoStorage;
@NonNull
private final SplitTaskExecutor mTaskExecutor;

@NonNull
private final RolloutCacheManagerConfig mConfig;

@NonNull
private final SplitTaskExecutor mTaskExecutor;
@NonNull
private final RolloutDefinitionsCache[] mStorages;

Expand All @@ -50,7 +48,6 @@ public RolloutCacheManagerImpl(@NonNull SplitClientConfig splitClientConfig, @No
mTaskExecutor = checkNotNull(splitTaskExecutor);
}

@WorkerThread
@Override
public void validateCache(SplitTaskExecutionListener listener) {
mTaskExecutor.submit(this, listener);
Expand Down

0 comments on commit a416b0c

Please sign in to comment.