Fix database api

This commit is contained in:
Daniel 2018-10-05 22:21:43 +02:00
parent f36d82bf19
commit 852f7ab3c6
3 changed files with 22 additions and 14 deletions

View file

@ -218,9 +218,6 @@ func (i *Interface) Delete(key string) error {
return err
}
r.Lock()
defer r.Unlock()
i.options.Apply(r)
r.Meta().Delete()
return db.Put(r)