diff plugins/mod_pubsub/mod_pubsub.lua @ 12153:26af75c20163

util.pubsub: Fix item store resize to "max" Previously this would end up passing the "max" directly to the underlying storage.
author Kim Alvefur <zash@zash.se>
date Thu, 06 Jan 2022 01:18:35 +0100
parents 376522fb3f52
children bc6fc1cb04ae
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua	Thu Jan 06 00:59:40 2022 +0100
+++ b/plugins/mod_pubsub/mod_pubsub.lua	Thu Jan 06 01:18:35 2022 +0100
@@ -224,6 +224,7 @@
 		node_defaults = {
 			["persist_items"] = true;
 		};
+		max_items = max_max_items;
 		nodestore = node_store;
 		itemstore = create_simple_itemstore;
 		broadcaster = simple_broadcast;