Implement per board post number incrementing

This commit is contained in:
Dominic Ferrando
2025-04-21 12:33:19 -04:00
parent 4e4b5614e0
commit 151b740ee9
6 changed files with 44 additions and 25 deletions
+5 -2
View File
@@ -17,8 +17,11 @@ var (
var CooldownMutex sync.Mutex
const POST_COOLDOWN = 15 * time.Second
const THREAD_COOLDOWN = 2 * time.Minute
// const POST_COOLDOWN = 15 * time.Second
const POST_COOLDOWN = 0 * time.Second
// const THREAD_COOLDOWN = 2 * time.Minute
const THREAD_COOLDOWN = 0 * time.Minute
func IsOnCooldown(ip string, m map[string]time.Time, duration time.Duration) bool {
CooldownMutex.Lock()