Skip to content

Commit 53cc7a0

Browse files
author
Motalleb Fallahnezhad
committed
hotfix: added buffer size to zip channel, 10 items per input
1 parent 6c77c6a commit 53cc7a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/utils/zip_channels.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ package utils
44
import "sync"
55

66
func ZipChannels[T interface{}](channels ...<-chan T) <-chan T {
7-
output := make(chan T)
7+
// TODO: Temporary solution must switch to pub-sub
8+
output := make(chan T, len(channels)*10)
89
wg := new(sync.WaitGroup)
910
for _, ch := range channels {
1011
wg.Add(1)

0 commit comments

Comments
 (0)