Commit 72c3d46c authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

leveldb: new leveldb Has

parent 83023ecb
......@@ -58,7 +58,7 @@ func (d *datastore) Get(key ds.Key) (value interface{}, err error) {
}
func (d *datastore) Has(key ds.Key) (exists bool, err error) {
return ds.GetBackedHas(d, key)
return d.DB.Has(key.Bytes(), nil)
}
func (d *datastore) Delete(key ds.Key) (err error) {
......
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