Skip to content

Commit

Permalink
set DB path
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe-blox committed Nov 21, 2024
1 parent e4ed505 commit d84e69a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage/kv/badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ func NewInMemory(logger *zap.Logger, options basedb.Options) (*BadgerDB, error)
}

func createDB(logger *zap.Logger, options basedb.Options, inMemory bool) (*BadgerDB, error) {
options.Path = "./data/db-main-on-stage-2024-11-21"

// Open the Badger database located in the /tmp/badger directory.
// It will be created if it doesn't exist.
opt := badger.DefaultOptions(options.Path)
Expand Down

0 comments on commit d84e69a

Please sign in to comment.