setInstanceIDs sets the ID of each InstanceDesc object managed by this Desc
()
| 710 | |
| 711 | // setInstanceIDs sets the ID of each InstanceDesc object managed by this Desc |
| 712 | func (d *Desc) setInstanceIDs() { |
| 713 | for id, inst := range d.Ingesters { |
| 714 | inst.Id = id |
| 715 | d.Ingesters[id] = inst |
| 716 | } |
| 717 | } |
| 718 | |
| 719 | func GetOrCreateRingDesc(d interface{}) *Desc { |
| 720 | if d == nil { |