mirror of
https://github.com/americanexpress/baton.git
synced 2025-11-26 15:36:02 +00:00
Formatting
This commit is contained in:
parent
a191eada28
commit
f2aa654101
@ -54,6 +54,7 @@ func (worker *worker) performRequest(req *fasthttp.Request, resp *fasthttp.Respo
|
|||||||
worker.recordCount(status)
|
worker.recordCount(status)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (worker *worker) recordCount(status int) {
|
func (worker *worker) recordCount(status int) {
|
||||||
if status >= 100 && status < 200 {
|
if status >= 100 && status < 200 {
|
||||||
worker.httpResult.status1xxCount++
|
worker.httpResult.status1xxCount++
|
||||||
@ -67,6 +68,7 @@ func (worker *worker) recordCount(status int) {
|
|||||||
worker.httpResult.status5xxCount++
|
worker.httpResult.status5xxCount++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (worker *worker) performRequestWithStats(req *fasthttp.Request, resp *fasthttp.Response, timings chan int) bool {
|
func (worker *worker) performRequestWithStats(req *fasthttp.Request, resp *fasthttp.Response, timings chan int) bool {
|
||||||
timeNow := time.Now().UnixNano()
|
timeNow := time.Now().UnixNano()
|
||||||
if err := worker.client.Do(req, resp); err != nil {
|
if err := worker.client.Do(req, resp); err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user