Skip to content

Commit cbd925b

Browse files
committed
fix: set database maintenance interval
1 parent 4d22dfe commit cbd925b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SushitrainCore/src/sushitrain.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,8 @@ func (clt *Client) Start(resetDeltaIdxs bool) error {
532532
ProfilerAddr: "",
533533
ResetDeltaIdxs: resetDeltaIdxs,
534534
Verbose: false,
535+
// Syncthing default is 8h, we'll do 24h as mobile devices are likely on the charger once a day only
536+
DBMaintenanceInterval: time.Hour * time.Duration(24),
535537
}
536538

537539
// Load database

0 commit comments

Comments
 (0)