mirror of
https://github.com/block/buzz.git
synced 2026-11-01 06:51:17 +00:00
docs(acp): clarify denial limiter bounds
Co-authored-by: Tom Brow <tomb@block.xyz> Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
committed by
npub1w85l93z2dyetvaev42kvmgv3r5qsgc7rutrvgpqshqefj4sydqqskwstfm
parent
177c2adaa2
commit
2a248a0092
@@ -164,8 +164,8 @@ impl DenialLimiter {
|
||||
self.prune(now);
|
||||
let author_key = (channel_id, author.to_string());
|
||||
|
||||
// Match OwnerCache's simple bounded-map policy. The channel cap remains
|
||||
// the volume bound if a many-author burst clears the author map.
|
||||
// Match OwnerCache's simple bounded-map policy. The channel map keeps
|
||||
// its own cap when a many-author burst clears the author map.
|
||||
if self.by_author.len() >= MAX_TRACKED_DENIAL_KEYS {
|
||||
self.by_author.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user