only delete accounts that haven't updated expiry in over 2 hours

This commit is contained in:
Andre Medeiros 2021-07-12 15:59:27 -04:00
parent 06465ebf19
commit 2304015aac

View file

@ -152,7 +152,7 @@ func evalScript(ctx context.Context, redisConn *redis.Client) (string, error) {
}
func cleanAccounts(ctx context.Context, logger *logrus.Logger, pool *pgxpool.Pool) {
now := time.Now().Unix()
now := time.Now().Unix() - 7200
count := 0
ids := []int64{}