diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-27 21:00:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-27 21:00:49 +0100 |
commit | f015521e4ac67946d322aa4df4fb63a12345e5cc (patch) | |
tree | f330337469827f8edb4166165d3b7d3cdf975955 /lualib/lua_scanners | |
parent | ac257bca1b9f9a5252f469436e753360eaf016ff (diff) | |
download | rspamd-f015521e4ac67946d322aa4df4fb63a12345e5cc.tar.gz rspamd-f015521e4ac67946d322aa4df4fb63a12345e5cc.zip |
[Minor] Remove legacy `default` metric
Diffstat (limited to 'lualib/lua_scanners')
-rw-r--r-- | lualib/lua_scanners/common.lua | 8 |
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 |