feat(botfilter): cache.go part 1/5

This commit is contained in:
hoelee committed 2026-02-13 09:58:00 +08:00
1 parent 7cc5d27322
commit f9cc4181b7
1 file changed
+5
+5
View File
@@ -82,3 +82,8 @@ func (c *clientCache) observeRequest(ip string, observation requestObservation)
return cacheResult{banned: observation.forceBan}
}
c.mu.Lock()
defer c.mu.Unlock()
c.operations++
c.cleanupLocked(observation.at)