Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Jun 28, 2024
1 parent 92bb340 commit 6468e60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"github.com/dymensionxyz/dymint/settlement"
slregistry "github.com/dymensionxyz/dymint/settlement/registry"
"github.com/dymensionxyz/dymint/store"
datastore "github.com/ipfs/go-datastore"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/pubsub"
"github.com/tendermint/tendermint/libs/service"
Expand Down
6 changes: 3 additions & 3 deletions store/badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewDefaultInMemoryKVStore() KV {
}

func NewKVStore(rootDir, dbPath, dbName string, syncWrites bool) KV {
path := filepath.Join(rootify(rootDir, dbPath), dbName)
path := filepath.Join(Rootify(rootDir, dbPath), dbName)
db, err := badger.Open(badger.DefaultOptions(path).WithSyncWrites(syncWrites))
if err != nil {
panic(err)
Expand All @@ -46,8 +46,8 @@ func NewDefaultKVStore(rootDir, dbPath, dbName string) KV {
return NewKVStore(rootDir, dbPath, dbName, true)
}

// rootify works just like in cosmos-sdk
func rootify(rootDir, dbPath string) string {
// Rootify works just like in cosmos-sdk
func Rootify(rootDir, dbPath string) string {
if filepath.IsAbs(dbPath) {
return dbPath
}
Expand Down

0 comments on commit 6468e60

Please sign in to comment.