commit af2111f: add undocumented interval change to docs

GitHub noreply at github.com
Fri Nov 22 16:07:07 UTC 2019


Author: Ben Humphrey
Date: 2019-11-22 10:59:26 -0500
URL: https://github.com/rspamd/rspamd/commit/af2111f87cd8b772a7d7ec3f35b4f2de9f24d754 (refs/pull/3160/head)

add undocumented interval change to docs

---
 src/lua/lua_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 9a2d2f55d..34bba5836 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -578,7 +578,7 @@ rspamd_config:add_on_load(function(cfg, ev_base)
 	rspamd_config:add_periodic(ev_base, 1.0, function(cfg, ev_base)
 		local logger = require "rspamd_logger"
 		logger.infox(cfg, "periodic function")
-		return true -- if return false, then the periodic event is removed
+		return true -- if return numeric, a new interval is set. if return false, then the periodic event is removed
 	end)
 end)
  */


More information about the Commits mailing list