commit 7850657: [Fix] Clickhouse: Do not store digest as it is not needed now
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Apr 18 16:56:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-04-18 17:53:49 +0100
URL: https://github.com/rspamd/rspamd/commit/7850657f6bfbd38cf0ac6838588444a8cdbdfe90 (HEAD -> master)
[Fix] Clickhouse: Do not store digest as it is not needed now
---
src/plugins/lua/clickhouse.lua | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua
index 501005abb..afdc2f0aa 100644
--- a/src/plugins/lua/clickhouse.lua
+++ b/src/plugins/lua/clickhouse.lua
@@ -74,6 +74,7 @@ local settings = {
password = nil,
no_ssl_verify = false,
custom_rules = {},
+ enable_digest = false,
retention = {
enable = false,
method = 'detach',
@@ -580,7 +581,11 @@ local function clickhouse_collect(task)
action = 'custom'
end
- local digest = task:get_digest()
+ local digest = ''
+
+ if settings.enable_digest then
+ digest = task:get_digest()
+ end
local subject = ''
if settings.insert_subject then
More information about the Commits
mailing list