()
| 559 | } |
| 560 | |
| 561 | func (d *Desc) instancesCountPerZone() map[string]int { |
| 562 | instancesCountPerZone := map[string]int{} |
| 563 | if d != nil { |
| 564 | for _, ingester := range d.Ingesters { |
| 565 | instancesCountPerZone[ingester.Zone]++ |
| 566 | } |
| 567 | } |
| 568 | return instancesCountPerZone |
| 569 | } |
| 570 | |
| 571 | func (d *Desc) instancesWithTokensCountPerZone() map[string]int { |
| 572 | instancesCountPerZone := map[string]int{} |
no outgoing calls
no test coverage detected