Remove exclusiveAccess lock from database controller

This commit is contained in:
Patrick Pacher 2020-10-15 11:01:15 +02:00
parent 458d4e7f15
commit 7e4d441c2a
No known key found for this signature in database
GPG key ID: E8CD2DA160925A6D
4 changed files with 160 additions and 131 deletions

View file

@ -1,7 +1,6 @@
package database
import (
"errors"
"time"
)
@ -16,11 +15,6 @@ type Database struct {
LastLoaded time.Time
}
// MigrateTo migrates the database to another storage type.
func (db *Database) MigrateTo(newStorageType string) error {
return errors.New("not implemented yet") // TODO
}
// Loaded updates the LastLoaded timestamp.
func (db *Database) Loaded() {
db.LastLoaded = time.Now().Round(time.Second)