Skip to content

Commit

Permalink
nutsdb path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed May 23, 2023
1 parent edbbcd4 commit 9df3fbd
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 9df3fbd

Please sign in to comment.