From: Vsevolod Stakhov Date: Thu, 18 Apr 2019 16:53:49 +0000 (+0100) Subject: [Fix] Clickhouse: Do not store digest as it is not needed now X-Git-Tag: 1.9.3~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7850657f6bfbd38cf0ac6838588444a8cdbdfe90;p=thirdparty%2Frspamd.git [Fix] Clickhouse: Do not store digest as it is not needed now --- diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 501005abbf..afdc2f0aaf 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