From f2aa654101c0fd3267b5b0a2bac478ee3b328766 Mon Sep 17 00:00:00 2001 From: Panayiotis Pastos Date: Wed, 21 Feb 2018 15:55:40 +0000 Subject: [PATCH] Formatting --- worker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worker.go b/worker.go index c3017c9..5509990 100644 --- a/worker.go +++ b/worker.go @@ -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 {