MCPcopy Create free account
hub / github.com/cortexproject/cortex / getNumZones

Method getNumZones

pkg/ingester/limiter.go:347–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

maxFunction · 0.85
ZonesCountMethod · 0.65

Tested by

no test coverage detected