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

ref(reduce): Refactor for timeout=0 #363

Merged
merged 3 commits into from
May 15, 2024
Merged

Conversation

untitaker
Copy link
Member

Slightly simplify the logic so that timeout=0 is honored.

Needed for https://github.com/getsentry/team-sns/issues/4

Slightly simplify the logic so that timeout=0 is honored.

Needed for getsentry/team-sns#4
@untitaker untitaker requested review from a team as code owners May 15, 2024 13:05
@untitaker untitaker requested a review from a team May 15, 2024 13:05
@loewenheim
Copy link
Contributor

Just to make sure I understand correctly what is happening: you're moving the check for whether the deadline has elapsed to the very beginning of the loop so that, in particular for timeout 0, you break immediately before doing anything?

@untitaker
Copy link
Member Author

yes exactly, and I also wanted to ensure that I don't call flush if timeout=0, hence the larger refactor

@untitaker untitaker merged commit 22f5cb0 into main May 15, 2024
11 checks passed
@untitaker untitaker deleted the ref/reduce-join-timeout branch May 15, 2024 13:49
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.

3 participants