diff --git a/cursor.go b/cursor.go index ed680f9..3ed6b14 100644 --- a/cursor.go +++ b/cursor.go @@ -14,7 +14,7 @@ func (c Cursor[T]) First() *T { } func (c Cursor[T]) Close() { - defer c.cancelFunc() + c.cancelFunc() } func (c Cursor[T]) Next() (*T, bool) {