Make OpsQueueParams to make it easier to understand args. (#2578)

This commit is contained in:
Raja Subramanian
2024-03-14 10:27:24 +05:30
committed by GitHub
parent e376625a13
commit 14321f21bf
6 changed files with 49 additions and 20 deletions
+5 -1
View File
@@ -180,7 +180,11 @@ func NewStreamAllocator(params StreamAllocatorParams) *StreamAllocator {
}),
rateMonitor: NewRateMonitor(),
videoTracks: make(map[livekit.TrackID]*Track),
eventsQueue: utils.NewOpsQueue("stream-allocator", 64, false),
eventsQueue: utils.NewOpsQueue(utils.OpsQueueParams{
Name: "stream-allocator",
MinSize: 64,
Logger: params.Logger,
}),
}
s.probeController = NewProbeController(ProbeControllerParams{