mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-18 23:16:49 +00:00
requester: Remove httpclient.Do errors from latency measurement (#1072)
* remove httpclient.Do errors from latency measurement * fix an oopsie
This commit is contained in:
@@ -165,7 +165,7 @@ func (r *Requester) doRequest(ctx context.Context, endpoint EndpointLimit, newRe
|
||||
|
||||
resp, err := r._HTTPClient.do(req)
|
||||
|
||||
if r.reporter != nil {
|
||||
if r.reporter != nil && err == nil {
|
||||
r.reporter.Latency(r.name, p.Method, p.Path, time.Since(start))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user