GetState returns the state of this ingester.
()
| 323 | |
| 324 | // GetState returns the state of this ingester. |
| 325 | func (i *Lifecycler) GetState() InstanceState { |
| 326 | i.stateMtx.RLock() |
| 327 | defer i.stateMtx.RUnlock() |
| 328 | return i.state |
| 329 | } |
| 330 | |
| 331 | func (i *Lifecycler) setState(state InstanceState) { |
| 332 | i.stateMtx.Lock() |
no outgoing calls