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.
This commit is contained in:
Raja Subramanian
2022-05-20 09:54:10 +05:30
committed by GitHub
parent 6eebd43c87
commit 8d0998ed1d
+1 -1
View File
@@ -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()