Improve interfaces and fix more linter errors

This commit is contained in:
Daniel 2020-09-24 09:50:38 +02:00
parent 5bb73a7b4c
commit 362539692e
11 changed files with 55 additions and 69 deletions

View file

@ -150,16 +150,6 @@ func (hm *HashMap) Injected() bool {
return false
}
// Maintain runs a light maintenance operation on the database.
func (hm *HashMap) Maintain(_ context.Context) error {
return nil
}
// MaintainThorough runs a thorough maintenance operation on the database.
func (hm *HashMap) MaintainThorough(_ context.Context) error {
return nil
}
// MaintainRecordStates maintains records states in the database.
func (hm *HashMap) MaintainRecordStates(ctx context.Context, purgeDeletedBefore time.Time) error {
hm.dbLock.Lock()