Software /
code /
prosody-modules
Comparison
mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua @ 5837:fa28fc2ee465
mod_pubsub_serverinfo: Remove unused variable declaration
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 08 Jan 2024 15:52:22 +0000 |
parent | 5836:d38772479891 |
child | 5838:77c5709bd57a |
comparison
equal
deleted
inserted
replaced
5836:d38772479891 | 5837:fa28fc2ee465 |
---|---|
7 local node = module:get_option(module.name .. "_node") or "serverinfo"; | 7 local node = module:get_option(module.name .. "_node") or "serverinfo"; |
8 local actor = module.host .. "/modules/" .. module.name; | 8 local actor = module.host .. "/modules/" .. module.name; |
9 local publication_interval = module:get_option(module.name .. "_publication_interval") or 300; | 9 local publication_interval = module:get_option(module.name .. "_publication_interval") or 300; |
10 local cache_ttl = module:get_option(module.name .. "_cache_ttl") or 3600; | 10 local cache_ttl = module:get_option(module.name .. "_cache_ttl") or 3600; |
11 | 11 |
12 local opt_in_reports | |
13 | 12 |
14 function module.load() | 13 function module.load() |
15 discover_node():next( | 14 discover_node():next( |
16 function(exists) | 15 function(exists) |
17 if not exists then create_node() end | 16 if not exists then create_node() end |