mod_cron: Remove difference between teal version
This previously was considered an error because the module API Teal spec
did not document a return value from module:add_timer()
--- a/teal-src/plugins/mod_cron.tl Sun May 15 15:27:35 2022 +0200
+++ b/teal-src/plugins/mod_cron.tl Sun May 15 15:29:02 2022 +0200
@@ -89,7 +89,7 @@
end
local task_runner : async.runner_t<task_spec> = async.runner(run_task);
-module:add_timer(1, function() : integer
+scheduled = module:add_timer(1, function() : integer
module:log("info", "Running periodic tasks");
local delay = 3600;
for host in pairs(active_hosts) do