diff options
author | left-try <lerest.go@gmail.com> | 2024-11-16 05:18:45 +0600 |
---|---|---|
committer | left-try <lerest.go@gmail.com> | 2024-11-16 05:18:45 +0600 |
commit | 21ec2578ad499dcdeefc79caf23af481d23b48f2 (patch) | |
tree | db5c3609ed676b99939747f52d86b1ee0263dfd0 /lualib | |
parent | f363b0643da1125c0ae614724c3281880422d054 (diff) | |
download | rspamd-21ec2578ad499dcdeefc79caf23af481d23b48f2.tar.gz rspamd-21ec2578ad499dcdeefc79caf23af481d23b48f2.zip |
[Minor] Make unused function used
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/rspamadm/ratelimit.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lualib/rspamadm/ratelimit.lua b/lualib/rspamadm/ratelimit.lua index 558554b10..5258f59e3 100644 --- a/lualib/rspamadm/ratelimit.lua +++ b/lualib/rspamadm/ratelimit.lua @@ -158,13 +158,6 @@ local function unblock_bucket_helper(prefix) end end -local function unblock_bucket_handler(args) - if (args.prefix == nil or args.prefix == "") then - unblock_bucket_handler(args) - end - unblock_bucket_helper(args.prefix) -end - local function unblock_buckets_handler(args) for i = 1, args.quantity do local res, prefix = redis.request(redis_params, redis_attrs, @@ -177,6 +170,13 @@ local function unblock_buckets_handler(args) end end +local function unblock_bucket_handler(args) + if (args.prefix == nil or args.prefix == "") then + unblock_buckets_handler(args) + end + unblock_bucket_helper(args.prefix) +end + local command_handlers = { track_limits = track_limits_handler, upgrade_bucket = upgrade_bucket_handler, |