]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Clickhouse: Do not store digest as it is not needed now
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 18 Apr 2019 16:53:49 +0000 (17:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 18 Apr 2019 16:53:49 +0000 (17:53 +0100)
src/plugins/lua/clickhouse.lua

index 501005abbf13cc0b8045bfae4f44cc358e8afdbf..afdc2f0aaffee746122c80e947fdd8f9d978cf99 100644 (file)
@@ -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