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

Method casRing

ring/ring.go:1452–1454  ·  view source on GitHub ↗
(ctx context.Context, f func(in interface{}) (out interface{}, retry bool, err error))

Source from the content-addressed store, hash-verified

1450}
1451
1452func (r *Ring) casRing(ctx context.Context, f func(in interface{}) (out interface{}, retry bool, err error)) error {
1453 return r.KVClient.CAS(ctx, r.key, f)
1454}
1455
1456func (r *Ring) getRing(_ context.Context) (*Desc, error) {
1457 r.mtx.RLock()

Callers

nothing calls this directly

Calls 1

CASMethod · 0.65

Tested by

no test coverage detected