Skip to content

Commit

Permalink
Fix typo in channel option
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Büringer buringerst@vmware.com
  • Loading branch information
sbueringer committed Apr 22, 2024
1 parent 5823d1b commit 9fb4913
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/source/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ var _ Source = &channel[string]{}
// ChannelOpt allows to configure a source.Channel.
type ChannelOpt[T any] func(*channel[T])

// WithPrededicates adds the configured predicates to a source.Channel.
func WithPrededicates[T any](p ...predicate.TypedPredicate[T]) ChannelOpt[T] {
// WithPredicates adds the configured predicates to a source.Channel.
func WithPredicates[T any](p ...predicate.TypedPredicate[T]) ChannelOpt[T] {
return func(c *channel[T]) {
c.predicates = append(c.predicates, p...)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/source/source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ var _ = Describe("Source", func() {
close(c)
},
},
source.WithPrededicates(prct),
source.WithPredicates(prct),
)
err := instance.Start(ctx, q)
Expect(err).NotTo(HaveOccurred())
Expand Down

0 comments on commit 9fb4913

Please sign in to comment.