increment the pointer

This commit is contained in:
oliverpool 2017-02-02 08:25:55 +01:00
parent 3d9395e1df
commit 691224cdbf
1 changed files with 1 additions and 1 deletions

View File

@ -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