fix: change variable name

This commit is contained in:
debugtalk
2022-01-05 21:39:09 +08:00
parent 39a2b92729
commit 574ee14f06
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -86,7 +86,7 @@ func (s *requestStats) logError(method, name, err string) {
entry = &statsError{
name: name,
method: method,
error: err,
errMsg: err,
}
s.errors[key] = entry
}
@@ -296,7 +296,7 @@ func (s *statsEntry) getStrippedReport() map[string]interface{} {
type statsError struct {
name string
method string
error string
errMsg string
occurrences int64
}
@@ -308,7 +308,7 @@ func (err *statsError) toMap() map[string]interface{} {
m := make(map[string]interface{})
m["method"] = err.method
m["name"] = err.name
m["error"] = err.error
m["error"] = err.errMsg
m["occurrences"] = err.occurrences
return m
}