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

Method setState

ring/lifecycler.go:331–335  ·  view source on GitHub ↗
(state InstanceState)

Source from the content-addressed store, hash-verified

329}
330
331func (i *Lifecycler) setState(state InstanceState) {
332 i.stateMtx.Lock()
333 defer i.stateMtx.Unlock()
334 i.state = state
335}
336
337func (i *Lifecycler) sendToLifecyclerLoop(fn func()) error {
338 sc := i.ServiceContext()

Callers 3

initRingMethod · 0.95
autoJoinMethod · 0.95
changeStateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected