mirror of
https://github.com/americanexpress/baton.git
synced 2025-03-30 15:08:27 +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)
|
||||
return false
|
||||
}
|
||||
|
||||
func (worker *worker) recordCount(status int) {
|
||||
if status >= 100 && status < 200 {
|
||||
worker.httpResult.status1xxCount++
|
||||
@ -67,6 +68,7 @@ func (worker *worker) recordCount(status int) {
|
||||
worker.httpResult.status5xxCount++
|
||||
}
|
||||
}
|
||||
|
||||
func (worker *worker) performRequestWithStats(req *fasthttp.Request, resp *fasthttp.Response, timings chan int) bool {
|
||||
timeNow := time.Now().UnixNano()
|
||||
if err := worker.client.Do(req, resp); err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user