Comparison

plugins/mod_pubsub/mod_pubsub.lua @ 11188:8a29e7206917

mod_pubsub: Comment on itemstore type
author Kim Alvefur <zash@zash.se>
date Sun, 25 Oct 2020 15:23:36 +0100
parent 10673:1a23a58ac84e
child 11200:bf8f2da84007
comparison
equal deleted inserted replaced
11187:76e135fbca0f 11188:8a29e7206917
40 -- users(): iterator over (node_name) 40 -- users(): iterator over (node_name)
41 41
42 42
43 local node_store = module:open_store(module.name.."_nodes"); 43 local node_store = module:open_store(module.name.."_nodes");
44 44
45 local function create_simple_itemstore(node_config, node_name) 45 local function create_simple_itemstore(node_config, node_name) --> util.cache like object
46 local driver = storagemanager.get_driver(module.host, "pubsub_data"); 46 local driver = storagemanager.get_driver(module.host, "pubsub_data");
47 local archive = driver:open("pubsub_"..node_name, "archive"); 47 local archive = driver:open("pubsub_"..node_name, "archive");
48 return lib_pubsub.archive_itemstore(archive, node_config, nil, node_name); 48 return lib_pubsub.archive_itemstore(archive, node_config, nil, node_name);
49 end 49 end
50 50