aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-05-29 11:04:58 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-05-29 11:04:58 +0100
commita7ee76868ee6b6e4a63f27b61564a2d6388d9595 (patch)
treed9a329d5389d7129aeb31354838cb856ce9a0a37 /src
parent308aceb47309cb1c188e11f7a9173fb5fec1f8a8 (diff)
downloadrspamd-a7ee76868ee6b6e4a63f27b61564a2d6388d9595.tar.gz
rspamd-a7ee76868ee6b6e4a63f27b61564a2d6388d9595.zip
[Minor] Avoid using legacy method
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/dynamic_conf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/dynamic_conf.lua b/src/plugins/lua/dynamic_conf.lua
index 8a2f95acc..8498b9b7c 100644
--- a/src/plugins/lua/dynamic_conf.lua
+++ b/src/plugins/lua/dynamic_conf.lua
@@ -92,7 +92,7 @@ local function apply_dynamic_scores(_, sc)
end
end, fun.filter(function(k, v)
-- Select elts with scores that are different from local ones
- local sym = rspamd_config:get_metric_symbol(k)
+ local sym = rspamd_config:get_symbol(k)
if (sym and alpha_cmp(sym.score, v)) or cur_settings.updates.symbols[k] then
return false
end