fix: increase default delete retention to 15 months (#10252)

365 + 90 days = 10920h.

Also, actually enforce the minimum interval of 24h.
This commit is contained in:
Jakob Borg
2025-08-14 08:15:53 +02:00
committed by GitHub
parent 370bbb8f26
commit 7a76685d7e
4 changed files with 16 additions and 11 deletions
+2 -4
View File
@@ -19,10 +19,8 @@ import (
)
const (
internalMetaPrefix = "dbsvc"
lastMaintKey = "lastMaint"
defaultDeleteRetention = 180 * 24 * time.Hour
minDeleteRetention = 24 * time.Hour
internalMetaPrefix = "dbsvc"
lastMaintKey = "lastMaint"
)
func (s *DB) Service(maintenanceInterval time.Duration) suture.Service {