File tree Expand file tree Collapse file tree
featuremanagement/providers/azappconfig Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,17 +12,17 @@ import (
1212 fm "github.com/microsoft/Featuremanagement-Go/featuremanagement"
1313)
1414
15- type featureConfig struct {
16- FeatureManagement fm.FeatureManagement `json:"feature_management"`
17- }
18-
1915type FeatureFlagProvider struct {
2016 azappcfg * azureappconfiguration.AzureAppConfiguration
2117 featureFlags []fm.FeatureFlag
2218 mu sync.RWMutex
2319}
2420
2521func NewFeatureFlagProvider (azappcfg * azureappconfiguration.AzureAppConfiguration ) (* FeatureFlagProvider , error ) {
22+ type featureConfig struct {
23+ FeatureManagement fm.FeatureManagement `json:"feature_management"`
24+ }
25+
2626 var fc featureConfig
2727 if err := azappcfg .Unmarshal (& fc , nil ); err != nil {
2828 return nil , fmt .Errorf ("failed to unmarshal feature management: %w" , err )
You can’t perform that action at this time.
0 commit comments