Skip to content

Commit

Permalink
fix: Prevent panic when setting non-comparable named providers (#286)
Browse files Browse the repository at this point in the history
Signed-off-by: ASAKURA Kazuki <[email protected]>
Co-authored-by: Todd Baert <[email protected]>
  • Loading branch information
Arthur1 and toddbaert authored Oct 18, 2024
1 parent 3551f3c commit 01953bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfeature/event_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func (e *eventExecutor) triggerEvent(event Event, handler FeatureProvider) {

// then run client handlers
for name, reference := range e.namedProviderReference {
if reference.featureProvider != handler {
if !reflect.DeepEqual(reference.featureProvider, handler) {
// unassociated client, continue to next
continue
}
Expand Down

0 comments on commit 01953bb

Please sign in to comment.