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

Method Clone

ring/model.go:473–475  ·  view source on GitHub ↗

Clone returns a deep copy of the ring state.

()

Source from the content-addressed store, hash-verified

471
472// Clone returns a deep copy of the ring state.
473func (d *Desc) Clone() memberlist.Mergeable {
474 return proto.Clone(d).(*Desc)
475}
476
477func (d *Desc) getTokensInfo() map[uint32]instanceInfo {
478 out := map[uint32]instanceInfo{}

Callers

nothing calls this directly

Calls 1

CloneMethod · 0.65

Tested by

no test coverage detected