commit a03f9c4: [Minor] Rename variable to match ClickHouse column name

Anton Yuzhaninov citrin+github at citrin.ru
Thu Jun 27 16:14:06 UTC 2019


Author: Anton Yuzhaninov
Date: 2019-06-26 19:52:52 +0100
URL: https://github.com/rspamd/rspamd/commit/a03f9c4a212ba7981ea39293a585dc68e13ca12a

[Minor] Rename variable to match ClickHouse column name

---
 src/plugins/lua/clickhouse.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua
index d4996aee7..3a7446b00 100644
--- a/src/plugins/lua/clickhouse.lua
+++ b/src/plugins/lua/clickhouse.lua
@@ -459,11 +459,11 @@ local function clickhouse_collect(task)
     end
   end
 
-  local mime_rcpt = {}
+  local mime_recipients = {}
   if task:has_recipients('mime') then
     local recipients = task:get_recipients({'mime','orig'})
     for _, rcpt in ipairs(recipients) do
-      table.insert(mime_rcpt, rcpt['user'] .. '@' .. rcpt['domain']:lower())
+      table.insert(mime_recipients, rcpt['user'] .. '@' .. rcpt['domain']:lower())
     end
   end
 
@@ -674,7 +674,7 @@ local function clickhouse_collect(task)
     subject,
     digest,
     fields.spf,
-    mime_rcpt,
+    mime_recipients,
     message_id,
     scan_real,
     scan_virtual,


More information about the Commits mailing list