mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
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:
parent
de3fc8ae46
commit
99c18f5a86
|
@ -51,7 +51,7 @@ func New(directoryPath string) (*Database, error) {
|
||||||
opts.Dir = directoryPath
|
opts.Dir = directoryPath
|
||||||
opts.ValueDir = directoryPath
|
opts.ValueDir = directoryPath
|
||||||
|
|
||||||
service, err := badger.Open(&opts)
|
service, err := badger.Open(opts)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
golog.Errorf("unable to initialize the badger-based session database: %v", err)
|
golog.Errorf("unable to initialize the badger-based session database: %v", err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user