feat(botfilter): add clientCache.ensureCapacityLocked

This commit is contained in:
hoelee committed 2026-03-10 17:11:00 +08:00
1 parent 6269efeeab
commit 4cae994a89
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
}