1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-23 11:56:00 +00:00

update badger db to its latest version and remove it from gopkg.toml/lock because it's vendored inside the sessionsdb/badger itself, this should fix https://github.com/kataras/iris/issues/848

Former-commit-id: 006b1d4d3c8dbe09b448ff33dade8978fddef4eb
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-27 03:35:01 +02:00
parent 93b037737c
commit 03ecfe49f1
3 changed files with 1 additions and 51 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)