Only run user cleanup once an hour. Not every 10 seconds.

This commit is contained in:
Asaf Gartner 2021-08-09 11:06:39 +03:00
parent 9dc3bfaa5c
commit 4a8d84b303
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ func PeriodicallyDeleteInactiveUsers(ctx context.Context, conn *pgxpool.Pool) <-
go func() {
defer close(done)
t := time.NewTicker(10 * time.Second)
t := time.NewTicker(1 * time.Hour)
for {
select {
case <-t.C: