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