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

Method ChangeState

ring/basic_lifecycler.go:206–210  ·  view source on GitHub ↗
(ctx context.Context, state InstanceState)

Source from the content-addressed store, hash-verified

204}
205
206func (l *BasicLifecycler) ChangeState(ctx context.Context, state InstanceState) error {
207 return l.run(func() error {
208 return l.changeState(ctx, state)
209 })
210}
211
212func (l *BasicLifecycler) ChangeReadOnlyState(ctx context.Context, readOnly bool) error {
213 return l.run(func() error {

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
changeStateMethod · 0.95

Tested by

no test coverage detected