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() {
|
go func() {
|
||||||
defer close(done)
|
defer close(done)
|
||||||
|
|
||||||
t := time.NewTicker(10 * time.Second)
|
t := time.NewTicker(1 * time.Hour)
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-t.C:
|
case <-t.C:
|
||||||
|
|
Loading…
Reference in New Issue