(ctx context.Context)
| 244 | } |
| 245 | |
| 246 | func (l *PartitionInstanceLifecycler) getRing(ctx context.Context) (*PartitionRingDesc, error) { |
| 247 | in, err := l.store.Get(ctx, l.ringKey) |
| 248 | if err != nil { |
| 249 | return nil, err |
| 250 | } |
| 251 | |
| 252 | return GetOrCreatePartitionRingDesc(in), nil |
| 253 | } |
| 254 | |
| 255 | func (l *PartitionInstanceLifecycler) updateRing(ctx context.Context, update func(ring *PartitionRingDesc) (bool, error)) error { |
| 256 | return l.store.CAS(ctx, l.ringKey, func(in interface{}) (out interface{}, retry bool, err error) { |
no test coverage detected