diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/workers/RemoveExpiredAccountsCommand.java b/service/src/main/java/org/whispersystems/textsecuregcm/workers/RemoveExpiredAccountsCommand.java index b994caa6f..6f6f5f323 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/workers/RemoveExpiredAccountsCommand.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/workers/RemoveExpiredAccountsCommand.java @@ -26,7 +26,6 @@ public class RemoveExpiredAccountsCommand extends AbstractSinglePassCrawlAccount private final Clock clock; - @VisibleForTesting static final Duration MAX_IDLE_DURATION = Duration.ofDays(120); @VisibleForTesting diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/workers/RemoveExpiredBackupsCommand.java b/service/src/main/java/org/whispersystems/textsecuregcm/workers/RemoveExpiredBackupsCommand.java index 48f2071dc..0a1af237a 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/workers/RemoveExpiredBackupsCommand.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/workers/RemoveExpiredBackupsCommand.java @@ -34,7 +34,7 @@ public class RemoveExpiredBackupsCommand extends AbstractCommandWithDependencies private static final String GRACE_PERIOD_ARGUMENT = "grace-period"; // A backup that has not been refreshed after a grace period is eligible for deletion - private static final Duration DEFAULT_GRACE_PERIOD = Duration.ofDays(60); + private static final Duration DEFAULT_GRACE_PERIOD = RemoveExpiredAccountsCommand.MAX_IDLE_DURATION; private static final int DEFAULT_SEGMENT_COUNT = 1; private static final int DEFAULT_CONCURRENCY = 16;