mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02: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:
co-authored by
Tom Brow
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