]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Mark module as experimental for now
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 28 Apr 2018 17:56:09 +0000 (18:56 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 28 Apr 2018 17:56:09 +0000 (18:56 +0100)
src/plugins/lua/maps_stats.lua

index ed6aedbd3777245365698861a9c67e7fea5452d8..725629a77551f29d1c7cf655ab76e3c747f9221f 100644 (file)
@@ -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