FeatureFlags: fix setting flags to false in startup (#80836)

This commit is contained in:
Ryan McKinley
2024-01-18 20:03:45 +02:00
committed by GitHub
parent 9e08c88a1c
commit 96fe605d95
2 changed files with 23 additions and 1 deletions
+2 -1
View File
@@ -102,7 +102,8 @@ func (fm *FeatureManager) update() {
// Update the registry
track := 0.0
if flag.Expression == "true" || (fm.startup[flag.Name]) {
startup, ok := fm.startup[flag.Name]
if startup || (!ok && flag.Expression == "true") {
track = 1
enabled[flag.Name] = true
}