From adba9749fb3d78d8cc64766e82efcd17e43456eb Mon Sep 17 00:00:00 2001 From: Radoslav Dimitrov Date: Fri, 13 Dec 2024 14:21:51 +0200 Subject: [PATCH] Use SetProviderAndWait instead of SetProvider Signed-off-by: Radoslav Dimitrov --- internal/flags/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/flags/flags.go b/internal/flags/flags.go index 0bfcfee2e0..12ba6f226b 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -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")