Commit b5cbbc3d by Carl Bergquist Committed by GitHub

only update usagestats every 30min (#31131)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
parent 4b253109
......@@ -55,7 +55,7 @@ func (uss *UsageStatsService) Run(ctx context.Context) error {
uss.updateTotalStats()
onceEveryDayTick := time.NewTicker(time.Hour * 24)
everyMinuteTicker := time.NewTicker(time.Minute)
everyMinuteTicker := time.NewTicker(time.Minute * 30)
defer onceEveryDayTick.Stop()
defer everyMinuteTicker.Stop()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment