Skip to content
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

fix: ensure dht query is aborted on early exit #2341

Merged
merged 3 commits into from
Jan 5, 2024

Conversation

achingbrain
Copy link
Member

If query results are consumed from a for await..of-style loop, and that loop is exited from before the results are complete, ensure we abort any running sub-queries.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@achingbrain achingbrain requested a review from a team as a code owner January 5, 2024 06:16
@achingbrain achingbrain force-pushed the fix/ensure-query-is-aborted-on-early-exit branch from ae2de87 to ff533c7 Compare January 5, 2024 07:27
If query results are consumed from a `for await..of`-style loop,
and that loop is exited from before the results are complete, ensure
we abort any running sub-queries.
@achingbrain achingbrain force-pushed the fix/ensure-query-is-aborted-on-early-exit branch from ff533c7 to e2cc0e6 Compare January 5, 2024 07:27
@achingbrain achingbrain merged commit 388d02b into main Jan 5, 2024
22 checks passed
@achingbrain achingbrain deleted the fix/ensure-query-is-aborted-on-early-exit branch January 5, 2024 18:47
@achingbrain achingbrain mentioned this pull request Jan 5, 2024
This was referenced Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants