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: createN could cause an infinite loop #37

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

kzys
Copy link
Member

@kzys kzys commented Dec 9, 2024

When r.createMachine returned an error, the loop couldn't stop since remaining-- wasn't executed.

Returning the error is much safer. The next reconciliation can start from the remaining regions.

kzys added 2 commits December 9, 2024 10:45
This allows us to have tests for non-exported functions.
When r.createMachine returned an error, the loop couldn't stop since
remaining-- wasn't executed.

Returning the error is much safer. The next reconciliation can start
from the remaining regions.
@kzys kzys requested a review from benbjohnson December 9, 2024 19:15
@benbjohnson
Copy link
Collaborator

@kzys Why all the unrelated changes (e.g. test package name change)?

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