From 07fa9bb47c0cb9cb40d542cfa690b1318cb32c16 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Wed, 18 Sep 2019 13:17:35 +0300 Subject: [PATCH] * minor --- home/auth.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/auth.go b/home/auth.go index 1e9c3b90..21b74adc 100644 --- a/home/auth.go +++ b/home/auth.go @@ -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) }