Skip to content

Commit fd9239b

Browse files
authored
Merge pull request #91 from ucwong/dev
nutsdb path fix
2 parents edbbcd4 + 9df3fbd commit fd9239b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nutsdb/nutsdb.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ func Open(path string, opts ...NutsdbOption) *NutsDB {
4848
for _, opt := range opts {
4949
option = opt(option)
5050
}
51-
if db, err := nutsdb.Open(nutsdb.DefaultOptions, nutsdb.WithDir(filepath.Join(path, ".nuts"))); err == nil {
51+
//if db, err := nutsdb.Open(nutsdb.DefaultOptions, nutsdb.WithDir(filepath.Join(path, ".nuts"))); err == nil {
52+
if db, err := nutsdb.Open(nutsdb.DefaultOptions, nutsdb.WithDir(path)); err == nil {
5253
b.engine = db
5354
} else {
5455
//panic(err)

0 commit comments

Comments
 (0)