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: provider status incorrect #187

Merged
merged 4 commits into from
Apr 24, 2024
Merged

fix: provider status incorrect #187

merged 4 commits into from
Apr 24, 2024

Conversation

toddbaert
Copy link
Member

Fixes an issue where the provider's status was incorrectly set to error.

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert toddbaert requested review from a team as code owners April 24, 2024 19:00
@toddbaert toddbaert requested a review from beeme1mr April 24, 2024 19:00
@github-actions github-actions bot requested a review from bacherfl April 24, 2024 19:00
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
global.json Outdated Show resolved Hide resolved
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@@ -16,7 +16,7 @@ public sealed class FlagdProvider : FeatureProvider
{
const string ProviderName = "flagd Provider";
private readonly FlagdConfig _config;
private ProviderStatus _status;
private ProviderStatus _status = ProviderStatus.NotReady;
Copy link
Member Author

Choose a reason for hiding this comment

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

This isn't a change, it just makes things explicit.

Comment on lines +123 to +127
if (t.IsFaulted)
{
_status = ProviderStatus.Error;
throw t.Exception;
};
Copy link
Member Author

Choose a reason for hiding this comment

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

Actual bug.

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