Commit a009d2bd authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

leveldb: options type fix

parent c276ac43
......@@ -14,7 +14,10 @@ type Datastore struct {
type Options opt.Options
func NewDatastore(path string, opts *Options) (*Datastore, error) {
nopts := opt.Options(*opts)
var nopts opt.Options
if opts != nil {
nopts = opt.Options(*opts)
}
db, err := leveldb.OpenFile(path, &nopts)
if err != nil {
return nil, err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment