mod_cloud_notify/mod_cloud_notify.lua
changeset 5219 fd6cb4365438
parent 5061 c728e82265a7
equal deleted inserted replaced
5218:d5492bc861f6 5219:fd6cb4365438
    25 
    25 
    26 local host_sessions = prosody.hosts[module.host].sessions;
    26 local host_sessions = prosody.hosts[module.host].sessions;
    27 local push_errors = module:shared("push_errors");
    27 local push_errors = module:shared("push_errors");
    28 local id2node = {};
    28 local id2node = {};
    29 local id2identifier = {};
    29 local id2identifier = {};
       
    30 
       
    31 if _VERSION:match("5%.1") then
       
    32 	module:log("warn", "This module may behave incorrectly on Lua 5.1. It is recommended to upgrade to a newer Lua version.");
       
    33 end
    30 
    34 
    31 -- For keeping state across reloads while caching reads
    35 -- For keeping state across reloads while caching reads
    32 -- This uses util.cache for caching the most recent devices and removing all old devices when max_push_devices is reached
    36 -- This uses util.cache for caching the most recent devices and removing all old devices when max_push_devices is reached
    33 local push_store = (function()
    37 local push_store = (function()
    34 	local store = module:open_store();
    38 	local store = module:open_store();