mirror of
https://github.com/safing/portbase
synced 2026-04-28 11:50:02 +00:00
Remove exclusiveAccess lock from database controller
This commit is contained in:
parent
458d4e7f15
commit
7e4d441c2a
4 changed files with 160 additions and 131 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue