diff options
author | Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> | 2024-10-14 14:08:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 14:08:52 +0200 |
commit | e660799311c2ebc60eca0f83e80fdd9394344420 (patch) | |
tree | b8e2815d19ab862bfecc9447b72a5f253e76819f /src/plugins | |
parent | 9a90347ea82b7a18aee99ed308257d668a20e4b6 (diff) | |
download | rspamd-e660799311c2ebc60eca0f83e80fdd9394344420.tar.gz rspamd-e660799311c2ebc60eca0f83e80fdd9394344420.zip |
Update src/plugins/lua/elastic.lua
Co-authored-by: Vsevolod Stakhov <vsevolod@rspamd.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/elastic.lua | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index 205a5ce86..4303ce6cc 100644 --- a/src/plugins/lua/elastic.lua +++ b/src/plugins/lua/elastic.lua @@ -659,15 +659,7 @@ local function get_general_metadata(task) end local fuzzy_hashes = task:get_mempool():get_variable('fuzzy_hashes', 'fstrings') - if fuzzy_hashes and #fuzzy_hashes > 0 then - local l = {} - for _, h in ipairs(fuzzy_hashes) do - table.insert(l, h) - end - r.fuzzy_hashes = l - else - r.fuzzy_hashes = empty - end +r.fuzzy_hashes = fuzzy_hashes or empty r.received_delay = 0 if user then -- calculate received_delay only for incoming traffic |