mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-25 06:25:44 +03:00
* minor
This commit is contained in:
parent
4e76013334
commit
07fa9bb47c
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue