aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Yuzhaninov <citrin+git@citrin.ru>2020-08-18 18:41:05 +0100
committerAnton Yuzhaninov <citrin+git@citrin.ru>2020-08-18 18:41:05 +0100
commit5098f10c3d713e925bc27053baf1e66e71baea50 (patch)
tree6b7fabf2ac31cddf542c7888cf670ea8ab8bb3e8
parent3c461d3ef5bd61514a3d20d0927f5791c2a8be2f (diff)
downloadrspamd-5098f10c3d713e925bc27053baf1e66e71baea50.tar.gz
rspamd-5098f10c3d713e925bc27053baf1e66e71baea50.zip
[Minor] Do not use built-in Lua function as variable name
-rw-r--r--src/plugins/lua/clickhouse.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua
index 578a35365..734832d57 100644
--- a/src/plugins/lua/clickhouse.lua
+++ b/src/plugins/lua/clickhouse.lua
@@ -731,9 +731,8 @@ local function clickhouse_collect(task)
if fname then
table.insert(attachments_fnames, fname)
- local type, subtype = part:get_type()
- table.insert(attachments_ctypes, string.format("%s/%s",
- type, subtype))
+ local mime_type, mime_subtype = part:get_type()
+ table.insert(attachments_ctypes, string.format("%s/%s", mime_type, mime_subtype))
table.insert(attachments_lengths, part:get_length())
table.insert(attachments_digests, string.sub(part:get_digest(), 1, 16))
end