diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-19 12:51:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-19 12:51:48 +0100 |
commit | a2496b33224e3404fe93475340216d0843b92030 (patch) | |
tree | 96f29f7db1ef4cded95e26707e63033f8fc2466f /src | |
parent | d9df8bb5bb5e5404ea0bfb37f0612465b10545f8 (diff) | |
download | rspamd-a2496b33224e3404fe93475340216d0843b92030.tar.gz rspamd-a2496b33224e3404fe93475340216d0843b92030.zip |
[Minor] Pet luacheck
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/elastic.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index 5bc6e9581..454ec7ef0 100644 --- a/src/plugins/lua/elastic.lua +++ b/src/plugins/lua/elastic.lua @@ -89,9 +89,9 @@ local function elastic_send_data(task) h:update(bulk_json) local key = settings['key_prefix'] ..es_index..":".. h:base32():sub(1, 20) local data = util.zstd_compress(bulk_json) - local function redis_set_cb(err) - if err ~=nil then - rspamd_logger.errx(task, 'redis_set_cb received error: %1', err) + local function redis_set_cb(rerr) + if rerr ~=nil then + rspamd_logger.errx(task, 'redis_set_cb received error: %1', rerr) end end rspamd_redis.make_request(task, @@ -285,10 +285,10 @@ local function initial_setup(cfg, ev_base, worker) local kibana_mappings = read_file(settings['kibana_file']) if kibana_mappings then local parser = ucl.parser() - local res,err = parser:parse_string(kibana_mappings) + local res,parser_err = parser:parse_string(kibana_mappings) if not res then rspamd_logger.infox(rspamd_config, 'kibana template cannot be parsed: %s', - err) + parser_err) enabled = false return |