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

Make interrupting by Ctrl-C more reliable #72

Merged
merged 1 commit into from
Jun 21, 2024
Merged

Make interrupting by Ctrl-C more reliable #72

merged 1 commit into from
Jun 21, 2024

Conversation

pkolaczk
Copy link
Owner

No description provided.

@pkolaczk pkolaczk changed the title Interrupt Make interrupting by Ctrl-C more reliable Jun 21, 2024
The retrying logic made Ctrl-C handling a bit broken,
because the streams could be terminated only at the
complete cycles. If a query retries for a long time
it prevented terminating the program.

This commit implements interruption logic in
a different way, by using tokio::signal
and tokio::select! so all streams are terminated
immediately, regardless of their progress.
@pkolaczk pkolaczk merged commit a8af402 into main Jun 21, 2024
4 checks passed
@pkolaczk pkolaczk deleted the interrupt branch June 21, 2024 12:51
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.

1 participant