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

Method StartRecvLog

pkg/controller/rtctrl/dispatcherv2.go:239–245  ·  view source on GitHub ↗
(runtimeID, requestID string, store LogStatStore)

Source from the content-addressed store, hash-verified

237}
238
239func (s *DispatchServerV2) StartRecvLog(runtimeID, requestID string, store LogStatStore) {
240 st := s.statsMap.get(runtimeID)
241 if st != nil {
242 store.SetMemUsed(st.memused)
243 }
244 s.storeMap.set(runtimeID, requestID, store)
245}
246
247func (s *DispatchServerV2) StopRecvLog(runtimeID, requestID string, store LogStatStore) {
248 s.storeMap.del(runtimeID, requestID, store)

Callers 3

TestStdlogHandlerFunction · 0.95
TestStatisticHandlerFunction · 0.95
startRecvLogMethod · 0.80

Calls 3

SetMemUsedMethod · 0.65
getMethod · 0.45
setMethod · 0.45

Tested by 2

TestStdlogHandlerFunction · 0.76
TestStatisticHandlerFunction · 0.76