Skip to content

Commit

Permalink
Update pkg/openfeature/api.go
Browse files Browse the repository at this point in the history
Co-authored-by: Todd Baert <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
  • Loading branch information
Kavindu-Dodan and toddbaert committed Jul 4, 2023
1 parent ee9d887 commit 144dcbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/openfeature/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func (api *evaluationAPI) initNewAndShutdownOld(newProvider FeatureProvider, old
if ok && v.Status() == NotReadyState {
go func(provider FeatureProvider, stateHandler StateHandler, evalCtx EvaluationContext, eventChan chan eventPayload) {
err := stateHandler.Init(evalCtx)
// emit ready/error event once initialization is complete
if err != nil {
eventChan <- eventPayload{
Event{
Expand Down

0 comments on commit 144dcbd

Please sign in to comment.