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

Method sendRequestLoop

pkg/controller/rtctrl/runtime.go:109–121  ·  view source on GitHub ↗

sendRequestLoop

(params *startRuntimeParams)

Source from the content-addressed store, hash-verified

107
108// sendRequestLoop
109func (info *RuntimeInfo) sendRequestLoop(params *startRuntimeParams) {
110 if !info.WithStreamMode {
111 info.runtimeConn = params.conn
112 info.runtimeWaitGroup.Add(1)
113 go info.sendGenericRequestLoop()
114 } else {
115 if info.httpClient == nil {
116 info.httpClient = info.getHTTPClient()
117 }
118 info.runtimeWaitGroup.Add(1)
119 go info.sendHTTPRequestLoop()
120 }
121}
122
123// sendGenericRequestLoop
124func (info *RuntimeInfo) sendGenericRequestLoop() {

Callers 1

initRuntimeMethod · 0.95

Calls 4

getHTTPClientMethod · 0.95
sendHTTPRequestLoopMethod · 0.95
AddMethod · 0.45

Tested by

no test coverage detected