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

Method starting

ring/partition_instance_lifecycler.go:173–179  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

171}
172
173func (l *PartitionInstanceLifecycler) starting(ctx context.Context) error {
174 if l.CreatePartitionOnStartup() {
175 return errors.Wrap(l.createPartitionAndRegisterOwner(ctx), "create partition and register owner")
176 }
177
178 return errors.Wrap(l.waitPartitionAndRegisterOwner(ctx), "wait partition and register owner")
179}
180
181func (l *PartitionInstanceLifecycler) running(ctx context.Context) error {
182 reconcile := func() {

Callers

nothing calls this directly

Calls 4

WrapMethod · 0.65

Tested by

no test coverage detected