diff --git a/db/go_level_db.go b/db/go_level_db.go index 2d2ba44e3..f3ed79e30 100644 --- a/db/go_level_db.go +++ b/db/go_level_db.go @@ -121,6 +121,7 @@ type goLevelDBIterator struct { iterator.Iterator } +// Key returns a copy of the current key. func (it *goLevelDBIterator) Key() []byte { key := it.Key() k := make([]byte, len(key)) @@ -129,6 +130,7 @@ func (it *goLevelDBIterator) Key() []byte { return k } +// Value returns a copy of the current value. func (it *goLevelDBIterator) Value() []byte { val := it.Value() v := make([]byte, len(val))