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

Method AddErrorCount

core/state.go:234–238  ·  view source on GitHub ↗

AddErrorCount add error count

(page string, err error, num uint64)

Source from the content-addressed store, hash-verified

232
233// AddErrorCount add error count
234func (state *ServerStateInfo) AddErrorCount(page string, err error, num uint64) uint64 {
235 atomic.AddUint64(&state.TotalErrorCount, num)
236 state.addErrorData(page, err, num)
237 return state.TotalErrorCount
238}
239
240func (state *ServerStateInfo) addRequestData(page string, code int, num uint64) {
241 // get from pool

Callers 7

wrapRouterHandleMethod · 0.80
wrapFileHandleMethod · 0.80
wrapWebSocketHandleMethod · 0.80
Test_AddErrorCount_2Function · 0.80
addErrorCountFunction · 0.80

Calls 1

addErrorDataMethod · 0.95

Tested by 4

Test_AddErrorCount_2Function · 0.64
addErrorCountFunction · 0.64