Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Phelps <[email protected]>
  • Loading branch information
markphelps committed Dec 10, 2024
1 parent 66feecd commit 8e7861a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/kv/bolt/bolt.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package bolt

import (
"bytes"
"fmt"
"io/fs"
"iter"
Expand Down Expand Up @@ -119,7 +120,7 @@ func (b *Bucket) Range(opts ...containers.Option[kv.RangeOptions]) iter.Seq2[[]b

if options.Start != nil {
// Seek moves the cursor to a given key using a b-tree search and returns it. If the key does not exist then the next key is used. If no keys follow, a nil key is returned
if k, v = cursor.Seek(options.Start); options.Order == kv.Descending && bytes.Compare(k, options.start) > 0 {
if k, v = cursor.Seek(options.Start); options.Order == kv.Descending && bytes.Compare(k, options.Start) > 0 {
k, v = cursor.Prev()
}
} else {
Expand Down

0 comments on commit 8e7861a

Please sign in to comment.