MCPcopy Create free account
hub / github.com/deepflowio/deepflow / getActive

Method getActive

server/controller/prometheus/cache/label.go:74–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74func (l *label) getActive() map[IDLabelKey]int {
75 if active := l.active.Load(); active != nil {
76 return active.(map[IDLabelKey]int)
77 }
78 return map[IDLabelKey]int{}
79}
80
81func (l *label) replaceActive(newActive map[IDLabelKey]int) {
82 l.active.Store(newActive)

Callers 2

GetKeyToIDMethod · 0.95
GetIDByKeyMethod · 0.95

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected