feat(botfilter): add clientCache.ensureCapacityLocked

This commit is contained in:
hoelee committed 2026-03-04 17:11:00 +08:00
1 parent a9f81d9735
commit c1aeace6b9
1 file changed
+5
+5
View File
@@ -191,3 +191,8 @@ func (c *clientCache) cleanupLocked(now time.Time) {
}
}
func (c *clientCache) ensureCapacityLocked(now time.Time) {
if len(c.entries) < c.maxEntries {
return
}