def updateTrickleCount(self, trickleCount):
    with self.lock:
        self.lastTrickleCount = trickleCount
        self.lastMessageTime = float(time.time())
def updateTrickleCount(self, trickleCount):
    with self.lock:
        self.lastTrickleCount = trickleCount
        self.lastMessageTime = float(time.time())