Skip to content

Commit

Permalink
Merge pull request #91 from ucwong/dev
Browse files Browse the repository at this point in the history
nutsdb path fix
  • Loading branch information
ucwong authored May 23, 2023
2 parents edbbcd4 + 9df3fbd commit fd9239b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nutsdb/nutsdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ func Open(path string, opts ...NutsdbOption) *NutsDB {
for _, opt := range opts {
option = opt(option)
}
if db, err := nutsdb.Open(nutsdb.DefaultOptions, nutsdb.WithDir(filepath.Join(path, ".nuts"))); err == nil {
//if db, err := nutsdb.Open(nutsdb.DefaultOptions, nutsdb.WithDir(filepath.Join(path, ".nuts"))); err == nil {
if db, err := nutsdb.Open(nutsdb.DefaultOptions, nutsdb.WithDir(path)); err == nil {
b.engine = db
} else {
//panic(err)
Expand Down

0 comments on commit fd9239b

Please sign in to comment.