MCPcopy
hub / github.com/cortexlabs/cortex / Capacity

Method Capacity

pkg/proxy/breaker.go:173–175  ·  view source on GitHub ↗

Capacity returns the number of allowed in-flight requests on this breaker.

()

Source from the content-addressed store, hash-verified

171
172// Capacity returns the number of allowed in-flight requests on this breaker.
173func (b *Breaker) Capacity() int {
174 return b.sem.Capacity()
175}
176
177func (b *Breaker) QueueLength() int64 {
178 return b.totalSlots - int64(b.sem.Capacity())

Callers 4

UpdateQueueLengthMethod · 0.45
QueueLengthMethod · 0.45

Calls

no outgoing calls

Tested by 2