1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00

update badger sessiondb

Former-commit-id: 8419d561ef732d6e4d0d3bb5536db540e1dd3a9f
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-27 03:40:10 +02:00
parent 650cd6c294
commit 8fd4dc2b4b
3 changed files with 1 additions and 61 deletions

View File

@@ -165,7 +165,7 @@ func (db *Database) sync(p sessions.SyncPayload) {
txn := db.Service.NewTransaction(true)
err = txn.Set(bsid, s, 0x00)
err = txn.Set(bsid, s)
if err != nil {
txn.Discard()
golog.Errorf("error while trying to save the session(%s) to the database: %v", p.SessionID, err)