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