consistent naming
This commit is contained in:
parent
e2b0050b8d
commit
c378bc9798
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue