From 21ec2578ad499dcdeefc79caf23af481d23b48f2 Mon Sep 17 00:00:00 2001 From: left-try Date: Sat, 16 Nov 2024 05:18:45 +0600 Subject: [Minor] Make unused function used --- lualib/rspamadm/ratelimit.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lualib') 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, -- cgit v1.2.3