-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it harder to misuse iterators #2428
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2428 +/- ##
===========================================
- Coverage 64.34% 26.88% -37.47%
===========================================
Files 392 393 +1
Lines 19251 19289 +38
===========================================
- Hits 12388 5185 -7203
- Misses 5961 13549 +7588
+ Partials 902 555 -347
... and 118 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think one could create Closer
and still forget to call closer.Close
but that change still would simplify the use of iterators. 😄
That would trigger a panic inside finalizer. I will add it to Closer too to make it easier to spot |
Description
Just close them.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Assignee, Labels, Project and project's Sprint fields.