This commit is contained in:
Simon Zolin 2019-09-18 13:17:35 +03:00
parent 4e76013334
commit 07fa9bb47c

View file

@ -90,7 +90,10 @@ func (a *Auth) loadSessions() {
}
_ = bkt.ForEach(forEach)
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)
}