Method
addRequestData
(page string, code int, num uint64)
Source from the content-addressed store, hash-verified
| 238 | } |
| 239 | |
| 240 | func (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 | |
| 249 | func (state *ServerStateInfo) addErrorData(page string, err error, num uint64) { |
| 250 | // get from pool |
Tested by
no test coverage detected