From: Vsevolod Stakhov Date: Fri, 21 Jun 2019 13:18:05 +0000 (+0100) Subject: [Minor] Fix cdb usage X-Git-Tag: 2.0~755^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cc70ba59d242600a7275cbe1cad2ae1e1c0303ec;p=rspamd.git [Minor] Fix cdb usage --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index d9fc0b449..5db8d4680 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -22,7 +22,6 @@ end local rules = {} local rspamd_logger = require "rspamd_logger" -local cdb = require "rspamd_cdb" local util = require "rspamd_util" local regexp = require "rspamd_regexp" local rspamd_expression = require "rspamd_expression" @@ -401,6 +400,7 @@ local function multimap_callback(task, rule) if r['cdb'] then if type(r.cdb) == 'string' then + local rspamd_cdb = require "rspamd_cdb" local cdb = rspamd_cdb.create(r.cdb, task:get_ev_base()) if not cdb then