()
| 345 | } |
| 346 | |
| 347 | func (l *Limiter) getNumZones() int { |
| 348 | if l.zoneAwarenessEnabled { |
| 349 | return max(l.ring.ZonesCount(), 1) |
| 350 | } |
| 351 | return 1 |
| 352 | } |
| 353 | |
| 354 | func minNonZero(first, second int) int { |
| 355 | if first == 0 || (second != 0 && first > second) { |
no test coverage detected