Skip to content

Commit 1f5b792

Browse files
Fix: Notifier should fire during runtime, even if DisableNotifierOnInit is true (#2569)
Co-authored-by: Thomas Poignant <[email protected]>
1 parent 57dc8fb commit 1f5b792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

feature_flag.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ func retrieveFlagsAndUpdateCache(config Config, cache cache.Manager,
279279
return err
280280
}
281281

282-
err = cache.UpdateCache(newFlags, config.internalLogger, isInit && !config.DisableNotifierOnInit)
282+
err = cache.UpdateCache(newFlags, config.internalLogger, !(isInit && config.DisableNotifierOnInit))
283283
if err != nil {
284284
log.Printf("error: impossible to update the cache of the flags: %v", err)
285285
return err

0 commit comments

Comments
 (0)