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

Method InFlight

pkg/proxy/breaker.go:158–160  ·  view source on GitHub ↗

InFlight returns the number of requests currently in flight in this breaker.

()

Source from the content-addressed store, hash-verified

156
157// InFlight returns the number of requests currently in flight in this breaker.
158func (b *Breaker) InFlight() int64 {
159 return b.inFlight.Load()
160}
161
162// UpdateConcurrency updates the maximum number of in-flight requests.
163func (b *Breaker) UpdateConcurrency(size int) {

Callers 3

TestBreakerInflightFunction · 0.95
mainFunction · 0.95
inFlightMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestBreakerInflightFunction · 0.76