consistent naming

This commit is contained in:
oliverpool 2017-02-22 11:51:56 +01:00
parent e2b0050b8d
commit c378bc9798
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ type simpleHTTPError struct {
Code int Code int
} }
func serializedHTTPError(err HTTPError) simpleHTTPError { func simplifiedHTTPError(err HTTPError) simpleHTTPError {
return simpleHTTPError{ return simpleHTTPError{
Msg: err.Error(), Msg: err.Error(),
Code: err.StatusCode(), Code: err.StatusCode(),
@ -102,7 +102,7 @@ func newErrorsTotalMap() ErrorsTotalMap {
// retrievePointerFor returns (after creating it if necessary) the pointer to // retrievePointerFor returns (after creating it if necessary) the pointer to
// the counter for the error. // the counter for the error.
func (e *ErrorsTotalMap) retrievePointerFor(err HTTPError) *uint64 { func (e *ErrorsTotalMap) retrievePointerFor(err HTTPError) *uint64 {
serr := serializedHTTPError(err) serr := simplifiedHTTPError(err)
e.RLock() e.RLock()
ptr, ok := e.m[serr] ptr, ok := e.m[serr]
e.RUnlock() e.RUnlock()