MCPcopy Create free account
hub / github.com/cortexproject/cortex / GetOrCreateRingDesc

Function GetOrCreateRingDesc

pkg/ring/model.go:630–635  ·  view source on GitHub ↗
(d any)

Source from the content-addressed store, hash-verified

628}
629
630func GetOrCreateRingDesc(d any) *Desc {
631 if d == nil {
632 return NewDesc()
633 }
634 return d.(*Desc)
635}
636
637// TokensHeap is an heap data structure used to merge multiple lists
638// of sorted tokens into a single one.

Calls 1

NewDescFunction · 0.85