mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 15:12:43 +00:00
Use smaller default deque size. (#2488)
This commit is contained in:
1 parent
5ac5bd236a
commit
e7dd03181c
2 files changed
+2
-2
No files matched your search
@@ -41,7 +41,7 @@ func NewOpsQueue(name string, minSize uint, flushOnStop bool) *OpsQueue {
|
||||
wake: make(chan struct{}, 1),
|
||||
doneChan: make(chan struct{}),
|
||||
}
|
||||
oq.ops.SetMinCapacity(uint(utils.Min(bits.Len64(uint64(minSize-1)), 16)))
|
||||
oq.ops.SetMinCapacity(uint(utils.Min(bits.Len64(uint64(minSize-1)), 7)))
|
||||
return oq
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user