Skip to content

Commit

Permalink
fix(helper/stream): fix function type
Browse files Browse the repository at this point in the history
  • Loading branch information
bounoable committed Jul 15, 2022
1 parent 4d3b19f commit c6d43c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/streams/streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ func Concurrent[T any](c chan T) func(context.Context, ...T) error {

// NewConcurrentContext does the same as NewConcurrent, but uses the provided
// Context for every push call.
func NewConcurrentContext[T any](ctx context.Context, vals ...T) (_ <-chan T, _push func(context.Context, ...T) error, _close func()) {
func NewConcurrentContext[T any](ctx context.Context, vals ...T) (_ <-chan T, _push func(...T) error, _close func()) {
out, push, cls := NewConcurrent(vals...)
return out, func(_ context.Context, vals ...T) error {
return out, func(vals ...T) error {
return push(ctx, vals...)
}, cls
}
Expand Down

0 comments on commit c6d43c0

Please sign in to comment.