aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
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 /lualib
parent308aceb47309cb1c188e11f7a9173fb5fec1f8a8 (diff)
downloadrspamd-a7ee76868ee6b6e4a63f27b61564a2d6388d9595.tar.gz
rspamd-a7ee76868ee6b6e4a63f27b61564a2d6388d9595.zip
[Minor] Avoid using legacy method
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_cfg_transform.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua
index 08e4ce416..419ebf0f6 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -134,7 +134,7 @@ local function symbol_transform(cfg, k, v)
end
end
-- Now check what Rspamd knows about this symbol
- local sym = rspamd_config:get_metric_symbol(k)
+ local sym = rspamd_config:get_symbol(k)
if not sym or not sym.group then
-- Otherwise we just use group 'ungrouped'