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

Method AddCurrentRequest

core/state.go:222–225  ·  view source on GitHub ↗

AddCurrentRequest increment current request count

(num uint64)

Source from the content-addressed store, hash-verified

220
221// AddCurrentRequest increment current request count
222func (state *ServerStateInfo) AddCurrentRequest(num uint64) uint64 {
223 atomic.AddUint64(&state.CurrentRequestCount, num)
224 return state.CurrentRequestCount
225}
226
227// SubCurrentRequest subtract current request count
228func (state *ServerStateInfo) SubCurrentRequest(num uint64) uint64 {

Callers 3

ServeHTTPMethod · 0.80
Test_CurrentRequestCountFunction · 0.80

Calls

no outgoing calls

Tested by 2

Test_CurrentRequestCountFunction · 0.64