only update usagestats every 30min (#31131)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist 2021-02-17 09:10:36 +01:00 committed by GitHub
parent 4b25310941
commit b5cbbc3db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()