fixed bug in FlatChan

This commit is contained in:
Timon Ringwald 2022-08-21 21:22:16 +02:00
parent 4e422b4243
commit 81d06f550c

View File

@ -15,7 +15,7 @@ func FlatSlice[T any](source <-chan []T) <-chan T {
return out return out
} }
func FlatChan[T any](source <-chan chan T) <-chan T { func FlatChan[T any](source <-chan <-chan T) <-chan T {
out := make(chan T, cap(source)) out := make(chan T, cap(source))
go func() { go func() {