From 691224cdbf6b16027c598102d561c16239d959b7 Mon Sep 17 00:00:00 2001 From: oliverpool Date: Thu, 2 Feb 2017 08:25:55 +0100 Subject: [PATCH] increment the pointer --- metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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