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

Method SubCurrentRequest

core/state.go:228–231  ·  view source on GitHub ↗

SubCurrentRequest subtract current request count

(num uint64)

Source from the content-addressed store, hash-verified

226
227// SubCurrentRequest subtract current request count
228func (state *ServerStateInfo) SubCurrentRequest(num uint64) uint64 {
229 atomic.AddUint64(&state.CurrentRequestCount, ^uint64(num-1))
230 return state.CurrentRequestCount
231}
232
233// AddErrorCount add error count
234func (state *ServerStateInfo) AddErrorCount(page string, err error, num uint64) uint64 {

Callers 2

ServeHTTPMethod · 0.80
Test_CurrentRequestCountFunction · 0.80

Calls

no outgoing calls

Tested by 1

Test_CurrentRequestCountFunction · 0.64