From c7f95e7bec940d1673ea2e93d22fe43936c172d6 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sun, 12 Aug 2018 14:58:23 +0100 Subject: [PATCH] nwfmqtt: remove deprecated heartbeat function This also drops another use of tq from the tree --- net/nwfmqtt.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/net/nwfmqtt.lua b/net/nwfmqtt.lua index 7e67859..086652f 100644 --- a/net/nwfmqtt.lua +++ b/net/nwfmqtt.lua @@ -36,14 +36,6 @@ function self.connect(m,cf) -- make a connection with parameters from json file secure = (secure == 1) or 0 return m:connect(broker,port,secure,0) end --- XXX deprecated in favor of new upstream cron module -function self.heartbeat(m,topic,tq,period) -- set up lw&t and periodically heartbeat using tq until cancelled - m:lwt(topic,"dead",1,1) - local handle - local function beat() m:publish(topic,"beat",1,1); handle = tq:queue(period, beat) end - handle = tq:queue(period,beat) - return function() tq:dequeue(handle) end -end function self.suball(m,fn) -- subscribe to all lines in a file if file.open(fn) then local line -- 2.50.1