()
| 547 | } |
| 548 | |
| 549 | func (d *Desc) instancesWithTokensCount() int { |
| 550 | count := 0 |
| 551 | if d != nil { |
| 552 | for _, ingester := range d.Ingesters { |
| 553 | if len(ingester.Tokens) > 0 { |
| 554 | count++ |
| 555 | } |
| 556 | } |
| 557 | } |
| 558 | return count |
| 559 | } |
| 560 | |
| 561 | func (d *Desc) instancesCountPerZone() map[string]int { |
| 562 | instancesCountPerZone := map[string]int{} |
no outgoing calls
no test coverage detected