(org *common.ORG)
| 40 | } |
| 41 | |
| 42 | func newLabelValue(org *common.ORG) *labelValue { |
| 43 | lv := &labelValue{ |
| 44 | org: org, |
| 45 | active: atomic.Value{}, |
| 46 | pending: make(map[string]int), |
| 47 | pendingIDToValue: make(map[int]string), |
| 48 | } |
| 49 | lv.active.Store(make(map[string]int)) |
| 50 | return lv |
| 51 | } |
| 52 | |
| 53 | func (lv *labelValue) getActive() map[string]int { |
| 54 | if active := lv.active.Load(); active != nil { |