From cc70ba59d242600a7275cbe1cad2ae1e1c0303ec Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 21 Jun 2019 14:18:05 +0100 Subject: [PATCH] [Minor] Fix cdb usage --- src/plugins/lua/multimap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5