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 /src/plugins/lua/elastic.lua | |
parent | ac257bca1b9f9a5252f469436e753360eaf016ff (diff) | |
download | rspamd-f015521e4ac67946d322aa4df4fb63a12345e5cc.tar.gz rspamd-f015521e4ac67946d322aa4df4fb63a12345e5cc.zip |
[Minor] Remove legacy `default` metric
Diffstat (limited to 'src/plugins/lua/elastic.lua')
-rw-r--r-- | src/plugins/lua/elastic.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index e8b5b6434..3fffd6612 100644 --- a/src/plugins/lua/elastic.lua +++ b/src/plugins/lua/elastic.lua @@ -147,12 +147,12 @@ local function get_general_metadata(task) r.direction = "Inbound" r.user = task:get_user() or 'unknown' r.qid = task:get_queue_id() or 'unknown' - r.action = task:get_metric_action('default') + r.action = task:get_metric_action() r.rspamd_server = HOSTNAME if r.user ~= 'unknown' then r.direction = "Outbound" end - local s = task:get_metric_score('default')[1] + local s = task:get_metric_score()[1] r.score = s local rcpt = task:get_recipients('smtp') |