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: hanging resolve bug #212

Merged
merged 4 commits into from
Jan 10, 2025
Merged

fix: hanging resolve bug #212

merged 4 commits into from
Jan 10, 2025

Conversation

nicklasl
Copy link
Member

@nicklasl nicklasl commented Jan 10, 2025

This fixes a bug where the promise used in evaluateFlag would never resolve.
The issue happened when there were no previous flag resolutions available and the network call for some reason threw an error.
This issue could for example cause a node app to unexpectedly quit.

We fix this by making sure that the resolve function always returns a FlagResolution and does not throw.

Copy link
Contributor

@andreas-karlsson andreas-karlsson left a comment

Choose a reason for hiding this comment

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

Nice!

@nicklasl nicklasl merged commit 7b22bc0 into main Jan 10, 2025
2 checks passed
@nicklasl nicklasl deleted the hanging-resolve-bug branch January 10, 2025 15:40
@github-actions github-actions bot mentioned this pull request Jan 10, 2025
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