Skip to content

Commit dfa8ca9

Browse files
committed
chore: calculate delete retention interval more directly
1 parent cbd925b commit dfa8ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SushitrainCore/src/sushitrain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ func (clt *Client) Start(resetDeltaIdxs bool) error {
521521
clt.config = config
522522

523523
// Default retention interval taken from Syncthing's CLI default
524-
dbDeleteRetentionInterval, _ := time.ParseDuration("4320h")
524+
dbDeleteRetentionInterval := time.Duration(4320) * time.Hour
525525
if err := syncthing.TryMigrateDatabase(dbDeleteRetentionInterval); err != nil {
526526
Logger.Warnln("Failed to migrate legacy database:", err)
527527
return err

0 commit comments

Comments
 (0)