go-graphite / go-carbon

Found time.Now().Sub(t) instead of time.Since(t) SCC-S1012
Anti-pattern
Major
6 months ago4 years old
should use time.Since instead of time.Now().Sub
123
124				start := time.Now()
125				p.Stop()
126				worktime := time.Now().Sub(start) //nolint:gosimple127
128				assert.True(worktime.Seconds() < 1, "maxUpdatesPerSecond: %d, workers: %d", maxUpdatesPerSecond, workers)
129			})