commit cc70ba5: [Minor] Fix cdb usage
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Jun 22 12:14:53 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-06-21 14:18:05 +0100
URL: https://github.com/rspamd/rspamd/commit/cc70ba59d242600a7275cbe1cad2ae1e1c0303ec
[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
More information about the Commits
mailing list