From 99c18f5a8677e7f04db7c0dd454c31d3a91e7f32 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Tue, 10 Oct 2017 17:07:01 +0300 Subject: [PATCH] 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 --- sessions/sessiondb/badger/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sessions/sessiondb/badger/database.go b/sessions/sessiondb/badger/database.go index 05fcc617..e610fe92 100644 --- a/sessions/sessiondb/badger/database.go +++ b/sessions/sessiondb/badger/database.go @@ -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)