lib/db: Remove *instance by making everything *Lowlevel (#6204)

This commit is contained in:
Simon Frei
2019-12-02 08:18:04 +01:00
committed by Jakob Borg
parent e82a7e3dfa
commit 0bec01b827
11 changed files with 851 additions and 876 deletions
+3 -3
View File
@@ -38,13 +38,13 @@ func (e databaseDowngradeError) Error() string {
return fmt.Sprintf("Syncthing %s required", e.minSyncthingVersion)
}
func UpdateSchema(ll *Lowlevel) error {
updater := &schemaUpdater{newInstance(ll)}
func UpdateSchema(db *Lowlevel) error {
updater := &schemaUpdater{db}
return updater.updateSchema()
}
type schemaUpdater struct {
*instance
*Lowlevel
}
func (db *schemaUpdater) updateSchema() error {