diff --git a/metrics.go b/metrics.go index 5577864..3ee5a5d 100644 --- a/metrics.go +++ b/metrics.go @@ -105,7 +105,7 @@ func (e *ErrorsTotalMap) incError(err HTTPError) { e.Unlock() } // We can then increase the counter - atomic.AddUint64(e.m[err], 1) + atomic.AddUint64(ptr, 1) } // Load retrieves the map of the counter pointers atomically