From e660799311c2ebc60eca0f83e80fdd9394344420 Mon Sep 17 00:00:00 2001 From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Mon, 14 Oct 2024 14:08:52 +0200 Subject: [PATCH] Update src/plugins/lua/elastic.lua Co-authored-by: Vsevolod Stakhov --- src/plugins/lua/elastic.lua | 10 +--------- 1 file changed, 1 insertion(+), 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 -- 2.39.5