From 5f502fedb51d43eed2995b59ebbb78131aab5953 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sat, 26 Feb 2022 19:47:13 -0800 Subject: [PATCH] Fix pubsub packet creation. --- chime/pubsub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chime/pubsub.py b/chime/pubsub.py index 6c95906..51826bd 100644 --- a/chime/pubsub.py +++ b/chime/pubsub.py @@ -45,7 +45,7 @@ class Publisher: self.socket.bind(addr) def publish(self, message, topic=b''): - message = proto.Packet(topic=topic, created=int(time.time()), payload=message) + message = proto.Packet(topic=topic, timestamp=int(time.time()), payload=message) return self.socket.send(message.SerializeToString()) def publish_json(self, message, topic=b''):