Changeset

8503:3b86134c56ea

mod_pubsub: Some variable renames for clarity
author Matthew Wild <mwild1@gmail.com>
date Fri, 02 Feb 2018 19:35:02 +0000 (2018-02-02)
parents 8502:6c2c2fc4b8dd
children 8504:80b8355c8b8b
files plugins/mod_pubsub/mod_pubsub.lua
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua	Fri Feb 02 19:31:03 2018 +0000
+++ b/plugins/mod_pubsub/mod_pubsub.lua	Fri Feb 02 19:35:02 2018 +0000
@@ -26,15 +26,15 @@
 	return lib_pubsub.handle_pubsub_iq(event, service);
 end
 
-local function simple_itemstore(config, node)
-	local archive = module:open_store("pubsub_"..node, "archive");
-	return lib_pubsub.archive_itemstore(archive, config, nil, node);
+local function create_simple_itemstore(node_config, node_name)
+	local archive = module:open_store("pubsub_"..node_name, "archive");
+	return lib_pubsub.archive_itemstore(archive, node_config, nil, node_name);
 end
 
 if enable_persistence then
 	module:log("warn", "Item persistence is an experimental feature. Note that ownership information is lost on restart.")
 else
-	simple_itemstore = nil;
+	create_simple_itemstore = nil;
 end
 
 
@@ -202,7 +202,7 @@
 		autocreate_on_publish = autocreate_on_publish;
 		autocreate_on_subscribe = autocreate_on_subscribe;
 
-		itemstore = simple_itemstore;
+		itemstore = create_simple_itemstore;
 		broadcaster = simple_broadcast;
 		get_affiliation = get_affiliation;