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

Method IsRegistered

ring/basic_lifecycler.go:199–204  ·  view source on GitHub ↗

IsRegistered returns whether the instance is currently registered within the ring.

()

Source from the content-addressed store, hash-verified

197
198// IsRegistered returns whether the instance is currently registered within the ring.
199func (l *BasicLifecycler) IsRegistered() bool {
200 l.currState.RLock()
201 defer l.currState.RUnlock()
202
203 return l.currInstanceDesc != nil
204}
205
206func (l *BasicLifecycler) ChangeState(ctx context.Context, state InstanceState) error {
207 return l.run(func() error {

Calls

no outgoing calls