Skip to content

Commit

Permalink
Not filter properly calls cleanup on it's nested filter (#7310)
Browse files Browse the repository at this point in the history
Signed-off-by: Calum Murray <[email protected]>
  • Loading branch information
Cali0707 authored Sep 28, 2023
1 parent efdfba6 commit 3dfc2ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/eventfilter/subscriptionsapi/not_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ func (filter *notFilter) Filter(ctx context.Context, event cloudevents.Event) ev
return eventfilter.NoFilter
}

func (filter *notFilter) Cleanup() {}
func (filter *notFilter) Cleanup() {
filter.filter.Cleanup()
}

var _ eventfilter.Filter = &notFilter{}

0 comments on commit 3dfc2ea

Please sign in to comment.