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

Method getActive

server/controller/prometheus/cache/label_name.go:48–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48func (ln *labelName) getActive() map[string]int {
49 if active := ln.active.Load(); active != nil {
50 return active.(map[string]int)
51 }
52 return map[string]int{}
53}
54
55func (ln *labelName) replaceActive(newActive map[string]int) {
56 ln.active.Store(newActive)

Callers 2

GetIDByNameMethod · 0.95
GetNameToIDMethod · 0.95

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected