diff options
author | Anton Yuzhaninov <citrin+git@citrin.ru> | 2020-08-18 18:41:05 +0100 |
---|---|---|
committer | Anton Yuzhaninov <citrin+git@citrin.ru> | 2020-08-18 18:41:05 +0100 |
commit | 5098f10c3d713e925bc27053baf1e66e71baea50 (patch) | |
tree | 6b7fabf2ac31cddf542c7888cf670ea8ab8bb3e8 | |
parent | 3c461d3ef5bd61514a3d20d0927f5791c2a8be2f (diff) | |
download | rspamd-5098f10c3d713e925bc27053baf1e66e71baea50.tar.gz rspamd-5098f10c3d713e925bc27053baf1e66e71baea50.zip |
[Minor] Do not use built-in Lua function as variable name
-rw-r--r-- | src/plugins/lua/clickhouse.lua | 5 |
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 |