Skip to content

Commit cd6fca1

Browse files
Update store/bolt_store.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 01d1310 commit cd6fca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

store/bolt_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (s *boltStore) ScanKeys(ctx context.Context, start []byte, end []byte, limi
112112

113113
c := b.Cursor()
114114
for k, _ := c.Seek(start); k != nil && (end == nil || bytes.Compare(k, end) < 0); k, _ = c.Next() {
115-
res = append(res, k)
115+
res = append(res, append([]byte(nil), k...))
116116
if len(res) >= limit {
117117
break
118118
}

0 commit comments

Comments
 (0)