badger version upgrade to v1.6.0 (#439)

* badger version upgrade to v1.6.0

- excuted go mod tidy command
- fixed badger error when without go mod

* go mod tidy and update packages
This commit is contained in:
Cem KIY
2019-12-08 02:41:16 +03:00
committed by Bo-Yi Wu
parent 969af2c42b
commit 682ca7fbad
3 changed files with 143 additions and 29 deletions

View File

@@ -30,9 +30,7 @@ type Storage struct {
// Init client storage.
func (s *Storage) Init() error {
s.name = "badger"
s.opts = badger.DefaultOptions
s.opts.Dir = os.TempDir() + "badger"
s.opts.ValueDir = os.TempDir() + "badger"
s.opts = badger.DefaultOptions(os.TempDir() + "badger")
return nil
}