Diff

util/pubsub.lua @ 9206:33ee40dc3e25

Pubsub: Add tests for :get_last_item() and fix for non-persistent nodes
author Matthew Wild <mwild1@gmail.com>
date Sat, 18 Aug 2018 15:10:41 +0100
parent 9204:c5a81acc1fc3
child 9207:76d593b35958
line wrap: on
line diff
--- a/util/pubsub.lua	Sat Aug 18 14:38:18 2018 +0100
+++ b/util/pubsub.lua	Sat Aug 18 15:10:41 2018 +0100
@@ -604,7 +604,7 @@
 	end
 
 	-- Returns success, id, item
-	return true, self.data[node]:tail();
+	return true, self.data[node]:head();
 end
 
 function service:get_nodes(actor)