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

Method getRing

ring/ring.go:1456–1463  ·  view source on GitHub ↗
(_ context.Context)

Source from the content-addressed store, hash-verified

1454}
1455
1456func (r *Ring) getRing(_ context.Context) (*Desc, error) {
1457 r.mtx.RLock()
1458 defer r.mtx.RUnlock()
1459
1460 ringDesc := proto.Clone(r.ringDesc).(*Desc)
1461
1462 return ringDesc, nil
1463}
1464
1465func (r *Ring) ServeHTTP(w http.ResponseWriter, req *http.Request) {
1466 newRingPageHandler(r, r.cfg.HeartbeatTimeout, r.cfg.StatusPageConfig).handle(w, req)

Callers

nothing calls this directly

Calls 1

CloneMethod · 0.65

Tested by

no test coverage detected