Mercurial > prosody-modules
comparison mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua @ 5814:fa28fc2ee465
mod_pubsub_serverinfo: Remove unused variable declaration
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 08 Jan 2024 15:52:22 +0000 |
| parents | d38772479891 |
| children | 77c5709bd57a |
comparison
equal
deleted
inserted
replaced
| 5813:d38772479891 | 5814: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 |
