fixes from @melekes

This commit is contained in:
Ethan Buchman
2017-12-13 20:11:11 -05:00
parent 318982c0ba
commit d4aeca8ce3
4 changed files with 27 additions and 32 deletions

View File

@@ -4,7 +4,7 @@ package db
import (
"fmt"
"path"
"path/filepath"
"github.com/jmhodges/levigo"
)
@@ -27,7 +27,7 @@ type CLevelDB struct {
}
func NewCLevelDB(name string, dir string) (*CLevelDB, error) {
dbPath := path.Join(dir, name+".db")
dbPath := filepath.Join(dir, name+".db")
opts := levigo.NewOptions()
opts.SetCache(levigo.NewLRUCache(1 << 30))