mirror of
https://github.com/livekit/livekit.git
synced 2026-04-23 20:15:41 +00:00
Mark last run of grow bucket outside goroutine. (#4348)
* straem tracker debug logging * tracker * debug * clean up
This commit is contained in:
@@ -1209,13 +1209,13 @@ func (b *BufferBase) maybeGrowBucket(now int64) {
|
||||
return
|
||||
}
|
||||
|
||||
b.lastBucketCapCheckAt = now
|
||||
|
||||
// check and allocate in a go routine, away from the forwarding path
|
||||
go func() {
|
||||
b.Lock()
|
||||
defer b.Unlock()
|
||||
|
||||
b.lastBucketCapCheckAt = now
|
||||
|
||||
cap := b.bucket.Capacity()
|
||||
maxPkts := b.params.MaxVideoPkts
|
||||
if b.codecType == webrtc.RTPCodecTypeAudio {
|
||||
|
||||
Reference in New Issue
Block a user