coding tweaks in preparation for crafting "delete conference" code

This commit is contained in:
2026-02-19 23:24:49 -07:00
parent 831c6c5524
commit d2e6396ca7
8 changed files with 48 additions and 13 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ import (
"sync"
"time"
"git.erbosoft.com/amy/amsterdam/config"
log "github.com/sirupsen/logrus"
)
@@ -140,7 +141,7 @@ var banSweeperInput chan *sweepentry
// setupIPBanSweep sets up the IP ban sweeper routine, and returns a function that tears it down.
func setupIPBanSweep() func() {
banSweeperReset = make(chan bool)
banSweeperInput = make(chan *sweepentry, 32)
banSweeperInput = make(chan *sweepentry, config.GlobalConfig.Tuning.Queues.IPBans)
done := make(chan bool)
ended := make(chan bool)
go banSweeper(done, ended, banSweeperReset, banSweeperInput)