mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua
changeset 5818 fa28fc2ee465
parent 5817 d38772479891
child 5819 77c5709bd57a
equal deleted inserted replaced
5817:d38772479891 5818: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