From 1f5b7925eac28348da4c843948d656de7d739804 Mon Sep 17 00:00:00 2001 From: Yamato Sasaki Date: Fri, 25 Oct 2024 16:04:18 +0900 Subject: [PATCH] Fix: Notifier should fire during runtime, even if DisableNotifierOnInit is true (#2569) Co-authored-by: Thomas Poignant --- feature_flag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feature_flag.go b/feature_flag.go index a2087a7e3bf..ac14952eeaf 100644 --- a/feature_flag.go +++ b/feature_flag.go @@ -279,7 +279,7 @@ func retrieveFlagsAndUpdateCache(config Config, cache cache.Manager, return err } - err = cache.UpdateCache(newFlags, config.internalLogger, isInit && !config.DisableNotifierOnInit) + err = cache.UpdateCache(newFlags, config.internalLogger, !(isInit && config.DisableNotifierOnInit)) if err != nil { log.Printf("error: impossible to update the cache of the flags: %v", err) return err