mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
lint driven refactoring
This commit is contained in:
parent
bc3be7dd2b
commit
7919cda5ec
12 changed files with 45 additions and 49 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue