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

Method ChangeReadOnlyState

ring/basic_lifecycler.go:212–216  ·  view source on GitHub ↗
(ctx context.Context, readOnly bool)

Source from the content-addressed store, hash-verified

210}
211
212func (l *BasicLifecycler) ChangeReadOnlyState(ctx context.Context, readOnly bool) error {
213 return l.run(func() error {
214 return l.changeReadOnlyState(ctx, readOnly)
215 })
216}
217
218// ShouldKeepInstanceInTheRingOnShutdown returns if the instance should be kept in the ring or unregistered on shutdown.
219func (l *BasicLifecycler) ShouldKeepInstanceInTheRingOnShutdown() bool {

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
changeReadOnlyStateMethod · 0.95

Tested by

no test coverage detected