diff --git a/runtime/stats.go b/runtime/stats.go index ec5bb64..53d0819 100644 --- a/runtime/stats.go +++ b/runtime/stats.go @@ -50,7 +50,6 @@ func NewGlobalStats(nodes *Nodes) (result *GlobalStats) { // if the value is not empty func (m CounterMap) Increment(key string) { if key != "" { - val := m[key] - m[key] = val + 1 + m[key]++ } }