MCPcopy
hub / github.com/grafana/dskit / GetState

Method GetState

ring/lifecycler.go:325–329  ·  view source on GitHub ↗

GetState returns the state of this ingester.

()

Source from the content-addressed store, hash-verified

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

Callers 7

loopMethod · 0.95
initRingMethod · 0.95
verifyTokensMethod · 0.95
autoJoinMethod · 0.95
updateConsulMethod · 0.95
changeStateMethod · 0.95

Calls

no outgoing calls