]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Hum, it seems that 99ff1c8 was not correct
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 17 Apr 2019 15:16:46 +0000 (16:16 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 17 Apr 2019 15:17:21 +0000 (16:17 +0100)
src/plugins/lua/clickhouse.lua

index da084ea74d3a8d26d9315fb4162841c3c370ebc7..d8dd14dace5f4124d689b8e040f9be841d4a66f0 100644 (file)
@@ -1054,9 +1054,9 @@ if opts then
         priority = 10,
         flags = 'empty,explicit_disable,ignore_passthrough',
       })
-      rspamd_config:register_finish_script(function(_, ev_base, _)
+      rspamd_config:register_finish_script(function(task)
         if nrows > 0 then
-          clickhouse_send_data(nil, ev_base)
+          clickhouse_send_data(task, nil)
         end
       end)
       -- Create tables on load