From c378bc97988363707d0ec3d185cc7ca830d7a5e0 Mon Sep 17 00:00:00 2001 From: oliverpool Date: Wed, 22 Feb 2017 11:51:56 +0100 Subject: [PATCH] consistent naming --- metrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics.go b/metrics.go index 09231c5..5a44115 100644 --- a/metrics.go +++ b/metrics.go @@ -85,7 +85,7 @@ type simpleHTTPError struct { Code int } -func serializedHTTPError(err HTTPError) simpleHTTPError { +func simplifiedHTTPError(err HTTPError) simpleHTTPError { return simpleHTTPError{ Msg: err.Error(), Code: err.StatusCode(), @@ -102,7 +102,7 @@ func newErrorsTotalMap() ErrorsTotalMap { // retrievePointerFor returns (after creating it if necessary) the pointer to // the counter for the error. func (e *ErrorsTotalMap) retrievePointerFor(err HTTPError) *uint64 { - serr := serializedHTTPError(err) + serr := simplifiedHTTPError(err) e.RLock() ptr, ok := e.m[serr] e.RUnlock()