Fix the pebble's db path
This commit is contained in:
parent
a9b90e6e5b
commit
6071d71c41
|
@ -23,7 +23,7 @@ type DB struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateDB(path *string) (*DB, error){
|
func CreateDB(path *string) (*DB, error){
|
||||||
conn, err := pebble.Open("demo", &pebble.Options{})
|
conn, err := pebble.Open(*path, &pebble.Options{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue