cosmetics

This commit is contained in:
nikk gitanes
2025-02-01 08:07:21 +03:00
parent 0ea54ce652
commit 1be5080e96
2 changed files with 9 additions and 7 deletions

View File

@@ -48,12 +48,12 @@ func InitSets(readOnly, searchWA bool) {
tdb = NewDBReadCache(dbRouter)
// We migrate settings here, it must be done before loadBTSets()
if err := Migrate2(bboltDB, jsonDB); err != nil {
log.TLogln("Migrate2 failed")
if err := MigrateToJson(bboltDB, jsonDB); err != nil {
log.TLogln("MigrateToJson failed")
os.Exit(1)
}
loadBTSets()
Migrate1()
MigrateTorrents()
}
func CloseDB() {