From 82c3d6e5b4bb7e317761013c3469b3a618612d6a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 28 Apr 2018 18:56:09 +0100 Subject: [PATCH] [Minor] Mark module as experimental for now --- src/plugins/lua/maps_stats.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/lua/maps_stats.lua b/src/plugins/lua/maps_stats.lua index ed6aedbd3..725629a77 100644 --- a/src/plugins/lua/maps_stats.lua +++ b/src/plugins/lua/maps_stats.lua @@ -29,6 +29,7 @@ maps_stats { end local redis_params +local lua_util = require "lua_util" local rspamd_logger = require "rspamd_logger" local lua_redis = require "lua_redis" local N = "maps_stats" @@ -91,6 +92,10 @@ local function process_map(map, ev_base, _) end end +if not lua_util.check_experimental(N) then + return +end + local opts = rspamd_config:get_all_opt(N) if opts then -- 2.39.5