From 8d0998ed1d3c002f99de7b462c1aa7d62416b6c1 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Fri, 20 May 2022 09:54:10 +0530 Subject: [PATCH] Bump up stream allocator event queue size (#700) This probably needs more work - Maybe some events should not be queued - Reduce number of events Bump up the size any way so that the queue does not overflow when subscribing to a lot of tracks. --- pkg/sfu/streamallocator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sfu/streamallocator.go b/pkg/sfu/streamallocator.go index e72aa6e1..9dfcf4a3 100644 --- a/pkg/sfu/streamallocator.go +++ b/pkg/sfu/streamallocator.go @@ -184,7 +184,7 @@ func NewStreamAllocator(params StreamAllocatorParams) *StreamAllocator { Logger: params.Logger, }), videoTracks: make(map[livekit.TrackID]*Track), - eventCh: make(chan Event, 20), + eventCh: make(chan Event, 200), } s.resetState()