MCPcopy Create free account
hub / github.com/devfeel/dotweb / addRequestData

Method addRequestData

core/state.go:240–247  ·  view source on GitHub ↗
(page string, code int, num uint64)

Source from the content-addressed store, hash-verified

238}
239
240func (state *ServerStateInfo) addRequestData(page string, code int, num uint64) {
241 // get from pool
242 info := state.infoPool.requestInfo.Get().(*RequestInfo)
243 info.URL = page
244 info.Code = code
245 info.Num = num
246 state.dataChan_Request <- info
247}
248
249func (state *ServerStateInfo) addErrorData(page string, err error, num uint64) {
250 // get from pool

Callers 1

AddRequestCountMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected