InstancesCount returns the number of instances in the ring.
()
| 107 | |
| 108 | // InstancesCount returns the number of instances in the ring. |
| 109 | func (r *Ring) InstancesCount() int { |
| 110 | r.mtx.RLock() |
| 111 | c := len(r.ringDesc.Ingesters) |
| 112 | r.mtx.RUnlock() |
| 113 | return c |
| 114 | } |
no outgoing calls
no test coverage detected