(ctx context.Context)
| 171 | } |
| 172 | |
| 173 | func (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 | |
| 181 | func (l *PartitionInstanceLifecycler) running(ctx context.Context) error { |
| 182 | reconcile := func() { |
nothing calls this directly
no test coverage detected