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

This commit is contained in:
hoelee committed 2026-02-11 09:58:00 +08:00
1 parent 12126232ce
commit afdf4db520
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)