hashicorp / go-immutable-radix

An immutable radix tree implementation in Golang
Mozilla Public License 2.0
999 stars 77 forks source link

Panic when seek bound after seek prefix #50

Open roseduan opened 1 year ago

roseduan commented 1 year ago
    tree := iradix.New[[]byte]()
    iter := tree.Root().Iterator()
    iter.SeekPrefix([]byte("a"))
    iter.SeekLowerBound([]byte("b"))

if there are no keys match the prefix, then I call SeekLowerBound, it will panic.