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

pkg/icingaredis/: check context termination while looping over channel #819

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

Al2Klimov
Copy link
Member

A for x := range c will block as long as c blocks, ignoring <-ctx.Done(). The latter has to be checked via select instead, together with c.

Also, hide whitespace under files changed is your friend. 😅

A `for x := range c` will block as long as c blocks, ignoring `<-ctx.Done()`.
The latter has to be checked via `select` instead, together with c.
@cla-bot cla-bot bot added the cla/signed label Sep 25, 2024
@Al2Klimov Al2Klimov requested a review from oxzi September 27, 2024 09:02
Copy link
Member

@oxzi oxzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basst scho.

@lippserd lippserd merged commit 20fbda2 into main Oct 7, 2024
32 checks passed
@lippserd lippserd deleted the SetChecksums branch October 7, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants