delete uesless truncate

This commit is contained in:
maskpp 2024-06-03 10:48:28 +08:00
parent d4b81f0e08
commit c201f4d64d

View file

@ -303,7 +303,6 @@ func (it *nodeIterator) Next(descend bool) bool {
func (it *nodeIterator) seek(prefix []byte) error { func (it *nodeIterator) seek(prefix []byte) error {
// The path we're looking for is the hex encoded key without terminator. // The path we're looking for is the hex encoded key without terminator.
key := keybytesToHex(prefix) key := keybytesToHex(prefix)
key = key[:len(key)-1]
// Move forward until we're just before the closest match to key. // Move forward until we're just before the closest match to key.
for { for {
state, parentIndex, path, err := it.peekSeek(key) state, parentIndex, path, err := it.peekSeek(key)