aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-05-08 15:21:35 +0200
committerKim Alvefur <zash@zash.se>2022-05-08 15:21:35 +0200
commit117c340edbb7512b911038e40201e64135b966f8 (patch)
treee0360f825b922dfe856021476d44c2f780a2c4ab /teal-src/plugins
parent1c6747f200505db7900204a9297b97c82c959df1 (diff)
downloadprosody-117c340edbb7512b911038e40201e64135b966f8.tar.gz
prosody-117c340edbb7512b911038e40201e64135b966f8.zip
util.async: Add Teal description file
Diffstat (limited to 'teal-src/plugins')
-rw-r--r--teal-src/plugins/mod_cron.tl2
1 files changed, 1 insertions, 1 deletions
diff --git a/teal-src/plugins/mod_cron.tl b/teal-src/plugins/mod_cron.tl
index f3b8f62f..303ecbf0 100644
--- a/teal-src/plugins/mod_cron.tl
+++ b/teal-src/plugins/mod_cron.tl
@@ -88,7 +88,7 @@ local function run_task(task : task_spec)
task:save(started_at);
end
-local task_runner = async.runner(run_task);
+local task_runner : async.runner_t<task_spec> = async.runner(run_task);
module:add_timer(1, function() : integer
module:log("info", "Running periodic tasks");
local delay = 3600;