Use EnableAll in gometalinter config

This commit is contained in:
Andrey Meshkov
2019-01-25 12:21:57 +03:00
committed by Eugene Bujak
parent d078851246
commit a0157e39c6
3 changed files with 18 additions and 35 deletions

View File

@@ -90,10 +90,10 @@ func (p *periodicStats) Observe(name string, when time.Time, value float64) {
{
countname := name + "_count"
currentValues := p.Entries[countname]
value := currentValues[elapsed]
v := currentValues[elapsed]
// log.Tracef("Will change p.Entries[%s][%d] from %v to %v", countname, elapsed, value, value+1)
value++
currentValues[elapsed] = value
v++
currentValues[elapsed] = v
p.Entries[countname] = currentValues
}
{