aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_scanners
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-05-27 21:00:49 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-05-27 21:00:49 +0100
commitf015521e4ac67946d322aa4df4fb63a12345e5cc (patch)
treef330337469827f8edb4166165d3b7d3cdf975955 /lualib/lua_scanners
parentac257bca1b9f9a5252f469436e753360eaf016ff (diff)
downloadrspamd-f015521e4ac67946d322aa4df4fb63a12345e5cc.tar.gz
rspamd-f015521e4ac67946d322aa4df4fb63a12345e5cc.zip
[Minor] Remove legacy `default` metric
Diffstat (limited to 'lualib/lua_scanners')
-rw-r--r--lualib/lua_scanners/common.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lualib/lua_scanners/common.lua b/lualib/lua_scanners/common.lua
index 2d4f2cf63..c2e314d39 100644
--- a/lualib/lua_scanners/common.lua
+++ b/lualib/lua_scanners/common.lua
@@ -183,8 +183,8 @@ end
local function dynamic_scan(task, rule)
if rule.dynamic_scan then
if rule.action ~= 'reject' then
- local metric_result = task:get_metric_score('default')
- local metric_action = task:get_metric_action('default')
+ local metric_result = task:get_metric_score()
+ local metric_action = task:get_metric_action()
local has_pre_result = task:has_pre_result()
-- ToDo: needed?
-- Sometimes leads to FPs
@@ -482,8 +482,8 @@ end
local function check_metric_results(task, rule)
if rule.action ~= 'reject' then
- local metric_result = task:get_metric_score('default')
- local metric_action = task:get_metric_action('default')
+ local metric_result = task:get_metric_score()
+ local metric_action = task:get_metric_action()
local has_pre_result = task:has_pre_result()
if rule.symbol_type == 'postfilter' and metric_action == 'reject' then