equal
deleted
inserted
replaced
44 local http = require "net.http"; |
44 local http = require "net.http"; |
45 local formdecode = http.formdecode; |
45 local formdecode = http.formdecode; |
46 local formencode = http.formencode; |
46 local formencode = http.formencode; |
47 |
47 |
48 local feed_list = module:shared("feed_list"); |
48 local feed_list = module:shared("feed_list"); |
49 local refresh_interval = module:get_option_number("feed_pull_interval", 15) * 60; |
49 local legacy_refresh_interval = module:get_option_number("feed_pull_interval", 15); |
|
50 local refresh_interval = module:get_option_number("feed_pull_interval_seconds", legacy_refresh_interval*60); |
50 local lease_length = tostring(math.floor(module:get_option_number("feed_lease_length", 86400))); |
51 local lease_length = tostring(math.floor(module:get_option_number("feed_lease_length", 86400))); |
51 |
52 |
52 function module.load() |
53 function module.load() |
53 local config = module:get_option("feeds", { }); |
54 local config = module:get_option("feeds", { }); |
54 local ok, nodes = pubsub.service:get_nodes(true); |
55 local ok, nodes = pubsub.service:get_nodes(true); |