Skip to content

Commit

Permalink
fix missing ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunKoyalwar committed Aug 30, 2023
1 parent a093f0f commit 040a44b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions v2/pkg/progress/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ func (p *StatsTicker) Init(hostCount int64, rulesCount int, requestCount int64)
if err := p.stats.Start(); err != nil {
gologger.Warning().Msgf("Couldn't start statistics: %s", err)
}

// Note: this is needed and is responsible for the tick event
p.stats.GetStatResponse(p.tickDuration, func(s string, err error) error {
if err != nil {
gologger.Warning().Msgf("Could not read statistics: %s\n", err)
}
return nil
})
}
}

Expand Down

0 comments on commit 040a44b

Please sign in to comment.