lint driven refactoring

This commit is contained in:
evilsocket 2018-04-24 16:33:38 +02:00
commit 7919cda5ec
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
12 changed files with 45 additions and 49 deletions

View file

@ -80,8 +80,8 @@ func (t *Ticker) Start() error {
return t.SetRunning(true, func() {
log.Info("Ticker running with period %.fs.", t.Period.Seconds())
tick := time.Tick(t.Period)
for range tick {
tick := time.NewTicker(t.Period)
for range tick.C {
if t.Running() == false {
break
}