From 2cca44957eb6beef27e3380d9a5ccace335c06f0 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Tue, 17 Jan 2017 01:41:11 -0500 Subject: [PATCH] Add deprecation comments to some util functions --- net/nwfmqtt.lua | 1 + net/nwfnet-sntp.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/net/nwfmqtt.lua b/net/nwfmqtt.lua index f651118..e17e81b 100644 --- a/net/nwfmqtt.lua +++ b/net/nwfmqtt.lua @@ -36,6 +36,7 @@ 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 diff --git a/net/nwfnet-sntp.lua b/net/nwfnet-sntp.lua index 8adcd03..059f7d1 100644 --- a/net/nwfnet-sntp.lua +++ b/net/nwfnet-sntp.lua @@ -17,6 +17,7 @@ local function dosntp(server) ) end +-- XXX deprecated in favor of new cron upstream module local function loopsntp(tq,period,server) local function f() dosntp(server); tq:queue(period,f) end tq:queue(period,f) -- 2.50.1