Skip to content

Commit

Permalink
Use SetProviderAndWait instead of SetProvider
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
  • Loading branch information
rdimitrov committed Dec 13, 2024
1 parent 62b7bd9 commit adba974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func OpenFeatureProviderFromFlags(ctx context.Context, cfg config.FlagsConfig) {
}

if flagProvider != nil {
if err := openfeature.SetProvider(flagProvider); err != nil {
if err := openfeature.SetProviderAndWait(flagProvider); err != nil {
zerolog.Ctx(ctx).Error().Err(err).Msg("Unable to set flag provider, continuing without flag data")
} else {
zerolog.Ctx(ctx).Info().Msg("Feature flag provider installed")
Expand Down

0 comments on commit adba974

Please sign in to comment.