fix badger session db can't built, they changed their api 3 hours ago: https://github.com/dgraph-io/badger/pull/261

This is the last time I update this session database, if they change their API again iris will vendor that session database and remove the `sessions/sessiondb/badger.go#NewFromDB`

Relative: https://github.com/dgraph-io/badger/pull/261

Read https://github.com/kataras/iris/blob/master/HISTORY.md#tu-10-october-2017--v851 for the previous release.


Former-commit-id: b8df7292f3b73c5ba2b595514c58fb0c85bc1ec5
This commit is contained in:
Gerasimos (Makis) Maropoulos 2017-10-10 17:07:01 +03:00
parent de3fc8ae46
commit 99c18f5a86

View File

@ -51,7 +51,7 @@ func New(directoryPath string) (*Database, error) {
opts.Dir = directoryPath
opts.ValueDir = directoryPath
service, err := badger.Open(&opts)
service, err := badger.Open(opts)
if err != nil {
golog.Errorf("unable to initialize the badger-based session database: %v", err)