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

Method loadRequest

pkg/controller/rtctrl/runtime.go:291–298  ·  view source on GitHub ↗
(requestID string)

Source from the content-addressed store, hash-verified

289}
290
291func (info *RuntimeInfo) loadRequest(requestID string) *RequestInfo {
292 if value, load := info.requestMap.Load(requestID); load {
293 return value.(*RequestInfo)
294 }
295 logs.Error(fmt.Sprintf("request not found in %s runtimeDispatcher", info.RuntimeID),
296 zap.String("request_id", requestID))
297 return nil
298}
299
300func (info *RuntimeInfo) handleInvokeDone(requestID string, params *url.Values, data string) bool {
301 if request := info.loadRequest(requestID); request != nil {

Callers 5

sendHTTPRequestLoopMethod · 0.95
recvHTTPResponseLoopMethod · 0.95
handleInvokeDoneMethod · 0.95

Calls 3

ErrorFunction · 0.92
LoadMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected