Skip to content

Commit

Permalink
Fix: Notifier should fire during runtime, even if DisableNotifierOnIn…
Browse files Browse the repository at this point in the history
…it is true (#2569)

Co-authored-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
  • Loading branch information
8ma10s and thomaspoignant authored Oct 25, 2024
1 parent 57dc8fb commit 1f5b792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature_flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f5b792

Please sign in to comment.