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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user