Fix the pebble's db path

This commit is contained in:
Sameer Rahmani 2022-04-09 23:02:30 +01:00
parent a9b90e6e5b
commit 6071d71c41
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ type DB struct {
}
func CreateDB(path *string) (*DB, error){
conn, err := pebble.Open("demo", &pebble.Options{})
conn, err := pebble.Open(*path, &pebble.Options{})
if err != nil {
return nil, err
}