diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-08 14:08:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-08 14:08:47 +0100 |
commit | 9331793874de2aed80a056e1d3aea5b08ad28527 (patch) | |
tree | 5bfc2a136db2bca86eef3e6905eb0b786e762391 /src/plugins | |
parent | 1f4e2f7f68499430cc33eb4f4c1cfbd597703e50 (diff) | |
download | rspamd-9331793874de2aed80a056e1d3aea5b08ad28527.tar.gz rspamd-9331793874de2aed80a056e1d3aea5b08ad28527.zip |
[Minor] Luacheck fixes
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/clickhouse.lua | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 6eab86961..c2375d765 100644 --- a/src/plugins/lua/clickhouse.lua +++ b/src/plugins/lua/clickhouse.lua @@ -15,7 +15,6 @@ limitations under the License. ]]-- local rspamd_logger = require 'rspamd_logger' -local rspamd_http = require "rspamd_http" local rspamd_lua_utils = require "lua_util" local upstream_list = require "rspamd_upstream_list" local lua_util = require "lua_util" @@ -32,7 +31,6 @@ local data_rows = {} local custom_rows = {} local nrows = 0 local schema_version = 2 -- Current schema version -local connect_prefix = 'http://' local settings = { limit = 1000, @@ -860,8 +858,8 @@ local function check_clickhouse_upstream(upstream, ev_base, cfg) check_rspamd_table(upstream, ev_base, cfg) end) if not ret then - rspamd_logger.errx(rspamd_config, "cannot send custom schema %s to clickhouse server %s: cannot make request", - k, upstream:get_addr():to_string(true)) + rspamd_logger.errx(rspamd_config, "cannot get version on clickhouse server %s: cannot make request", + upstream:get_addr():to_string(true)) end end @@ -918,9 +916,6 @@ if opts then else settings['from_map'] = rspamd_map_add('clickhouse', 'from_tables', 'regexp', 'clickhouse specific domains') - if settings.use_https then - connect_prefix = 'https://' - end settings.upstream = upstream_list.create(rspamd_config, settings['server'] or settings['servers'], 8123) |