Only run user cleanup once an hour. Not every 10 seconds.
This commit is contained in:
parent
9dc3bfaa5c
commit
4a8d84b303
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue