From 267f4e89c46a4d4f27af805d340f4e4213f74c52 Mon Sep 17 00:00:00 2001 From: Yamato Sasaki Date: Fri, 25 Oct 2024 08:39:45 +0900 Subject: [PATCH] Fix: Notifier should fire during runtime, even if DisableNotifierOnInit is true --- 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