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

Method getRing

ring/lifecycler.go:1108–1115  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1106}
1107
1108func (i *Lifecycler) getRing(ctx context.Context) (*Desc, error) {
1109 obj, err := i.KVStore.Get(ctx, i.RingKey)
1110 if err != nil {
1111 return nil, err
1112 }
1113
1114 return GetOrCreateRingDesc(obj), nil
1115}
1116
1117func (i *Lifecycler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
1118 newRingPageHandler(i, i.cfg.HeartbeatTimeout, i.cfg.StatusPageConfig).handle(w, req)

Callers

nothing calls this directly

Calls 2

GetOrCreateRingDescFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected