Diff

mod_pubsub_stats/mod_pubsub_stats.lua @ 3175:44c5d7310c33

mod_pubsub_stats: Pass configuration to disable persistence and limit number of items
author Kim Alvefur <zash@zash.se>
date Sun, 08 Jul 2018 01:17:23 +0200
parent 3160:330e8c81f6af
child 3407:26ae3b6a8a57
line wrap: on
line diff
--- a/mod_pubsub_stats/mod_pubsub_stats.lua	Thu Jul 05 02:03:29 2018 +0200
+++ b/mod_pubsub_stats/mod_pubsub_stats.lua	Sun Jul 08 01:17:23 2018 +0200
@@ -26,7 +26,10 @@
 end
 
 function module.load()
-	pubsub.service:create(node, true);
+	pubsub.service:create(node, true, {
+		persistent_items = false;
+		max_items = 1;
+	});
 	pubsub.service:set_affiliation(node, true, actor, "publisher");
 end