Get returns the given key if it's present.
(key []byte)
| 68 | |
| 69 | // Get returns the given key if it's present. |
| 70 | func (db *LDBDatabase) Get(key []byte) ([]byte, error) { |
| 71 | dat, err := db.db.Get(key, nil) |
| 72 | if err != nil { |
| 73 | return nil, err |
| 74 | } |
| 75 | return dat, nil |
| 76 | } |
| 77 | |
| 78 | // Delete deletes the key from the queue and database |
| 79 | func (db *LDBDatabase) Delete(key []byte) error { |