This commit is contained in:
Simon Zolin 2019-09-18 13:17:35 +03:00
parent 4e76013334
commit 07fa9bb47c
1 changed files with 4 additions and 1 deletions

View File

@ -90,7 +90,10 @@ func (a *Auth) loadSessions() {
} }
_ = bkt.ForEach(forEach) _ = bkt.ForEach(forEach)
if removed != 0 { if removed != 0 {
_ = tx.Commit() err = tx.Commit()
if err != nil {
log.Error("bolt.Commit(): %s", err)
}
} }
log.Debug("Auth: loaded %d sessions from DB (removed %d expired)", len(a.sessions), removed) log.Debug("Auth: loaded %d sessions from DB (removed %d expired)", len(a.sessions), removed)
} }