Set default stale time for LXMF PN sensor, cleanup

This commit is contained in:
Mark Qvist 2025-01-24 22:32:57 +01:00
parent be6a1de135
commit cc722dec9f
2 changed files with 2 additions and 4 deletions

View File

@ -39,6 +39,7 @@ class MQTT():
if len(self.waiting_msgs) > 0:
RNS.log(f"Processing {len(self.waiting_msgs)} MQTT messages", RNS.LOG_DEBUG)
self.process_queue()
RNS.log("All MQTT messages processed", RNS.LOG_DEBUG)
except Exception as e:
RNS.log("An error occurred while running MQTT scheduler jobs: {e}", RNS.LOG_ERROR)

View File

@ -2508,7 +2508,7 @@ class RNSTransport(Sensor):
class LXMFPropagation(Sensor):
SID = Sensor.SID_LXMF_PROPAGATION
STALE_TIME = 5
STALE_TIME = 120
def __init__(self):
self.identity = None
@ -2578,9 +2578,6 @@ class LXMFPropagation(Sensor):
if self.data == None:
return None
from rich.pretty import pprint
pprint(self.data["peers"])
try:
d = self.data
values = {