Skip to content

Commit 56dd893

Browse files
committed
iterator: don't ignore finishInitializingExternal error
1 parent b2cb531 commit 56dd893

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

iterator.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2851,7 +2851,10 @@ func (i *Iterator) SetOptions(o *IterOptions) {
28512851
// Iterators created through NewExternalIter have a different iterator
28522852
// initialization process.
28532853
if i.externalIter != nil {
2854-
_ = finishInitializingExternal(i.ctx, i)
2854+
if err := finishInitializingExternal(i.ctx, i); err != nil {
2855+
// TODO(radu): propagate the error instead.
2856+
panic(err)
2857+
}
28552858
return
28562859
}
28572860
finishInitializingIter(i.ctx, i.alloc)

0 commit comments

Comments
 (0)