]> source.dussan.org Git - rspamd.git/commitdiff
Update clickhouse.lua
authorMehmet Suslu <msuslu@gmail.com>
Fri, 10 Dec 2021 15:39:39 +0000 (18:39 +0300)
committerGitHub <noreply@github.com>
Fri, 10 Dec 2021 15:39:39 +0000 (18:39 +0300)
fix typo collect_garbadge -> collect_garbage

src/plugins/lua/clickhouse.lua

index 97c66946de6e78e675bfe2fa25de10920cb93bd8..7a2e276eebf0ca5ca4405ae139db80d1abaf04d0 100644 (file)
@@ -1057,7 +1057,7 @@ local function clickhouse_maybe_send_data_periodic(cfg, ev_base, now)
 
     clickhouse_send_data(nil, ev_base, reason, saved_rows, saved_custom)
 
-    if settings.collect_garbadge then
+    if settings.collect_garbage then
       collectgarbage()
     end
   end
@@ -1484,7 +1484,7 @@ if opts then
         clickhouse_send_data(task, nil, 'final collection',
             saved_rows, saved_custom)
 
-        if settings.collect_garbadge then
+        if settings.collect_garbage then
           collectgarbage()
         end
       end