MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / get

Method get

pkg/controller/rtctrl/stat_receiver.go:74–80  ·  view source on GitHub ↗
(runtimeid string)

Source from the content-addressed store, hash-verified

72}
73
74func (m *statsMap) get(runtimeid string) *statsConn {
75 v, ok := m.Load(runtimeid)
76 if ok {
77 return v.(*statsConn)
78 }
79 return nil
80}
81
82func (m *statsMap) set(runtimeid string, sc *statsConn) {
83 m.Store(runtimeid, sc)

Callers 2

StartRecvLogMethod · 0.45
TestStatisticHandlerFunction · 0.45

Calls 1

LoadMethod · 0.80

Tested by 1

TestStatisticHandlerFunction · 0.36