SubCurrentRequest subtract current request count
(num uint64)
| 226 | |
| 227 | // SubCurrentRequest subtract current request count |
| 228 | func (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 |
| 234 | func (state *ServerStateInfo) AddErrorCount(page string, err error, num uint64) uint64 { |
no outgoing calls