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

Method del

pkg/controller/rtctrl/stat_receiver.go:86–94  ·  view source on GitHub ↗
(runtimeid string, sc *statsConn)

Source from the content-addressed store, hash-verified

84}
85
86func (m *statsMap) del(runtimeid string, sc *statsConn) {
87 v, ok := m.Load(runtimeid)
88 if ok {
89 old := v.(*statsConn)
90 if old == sc {
91 m.Delete(runtimeid)
92 }
93 }
94}

Callers 2

statisticHandlerMethod · 0.45
StopRecvLogMethod · 0.45

Calls 2

LoadMethod · 0.80
DeleteMethod · 0.65

Tested by

no test coverage detected