aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeftTry <lerest.go@gmail.com>2024-09-29 14:07:53 +0600
committerLeftTry <lerest.go@gmail.com>2024-09-29 14:07:53 +0600
commit94ff0ca172d108920119d42bac2060778d05e151 (patch)
treec08d15efa91a6a9225e601aec51c0ec0f907116c /src
parentee5d923a20ef1f2c09bfb0c71f416591adc2f481 (diff)
downloadrspamd-94ff0ca172d108920119d42bac2060778d05e151.tar.gz
rspamd-94ff0ca172d108920119d42bac2060778d05e151.zip
[Minor] Make names more informative
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/ratelimit.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index c0783eac8..71ab52b4f 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -41,8 +41,8 @@ local settings = {
-- Do not check ratelimits for these recipients
whitelisted_rcpts = { 'postmaster', 'mailer-daemon' },
prefix = 'RL',
- cache_prefix = 'RL_cache_prefix',
- max_cache_size = 30,
+ lfb_cache_prefix = 'RL_cache_prefix', -- Last filled buckets cache prefix
+ lfb_max_cache_size = 30,
-- If enabled, we apply dynamic rate limiting based on the verdict
dynamic_rate_limit = false,
ham_factor_rate = 1.01,
@@ -443,7 +443,7 @@ local function ratelimit_cb(task)
for pr, value in pairs(prefixes) do
local bucket = value.bucket
- local rate = (bucket.rate) / 1000.0 -- Leak rate in messages/ms
+ local rate = (bucket.rate) / 1000.0 -- Leak rate in messast filled bucketsages/ms
local bincr = nrcpt
if bucket.skip_recipients then
bincr = 1
@@ -458,7 +458,7 @@ local function ratelimit_cb(task)
gen_check_cb(pr, bucket, value.name, value.hash),
{ value.hash, tostring(now), tostring(rate), tostring(bucket.burst),
tostring(settings.expire), tostring(bincr), tostring(dyn_rate_enabled),
- settings.cache_prefix, settings.max_cache_size })
+ tostring(settings.lfb_cache_prefix), tostring(settings.lfb_max_cache_size) })
end
end
end