use msgspec to parse message
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
Thomas Peetz
2026-07-30 22:37:35 +02:00
parent 0c6b26b79e
commit 9f17823922
+1 -1
View File
@@ -25,7 +25,7 @@ class MyListener(stomp.ConnectionListener):
def on_message(self, frame): def on_message(self, frame):
logger.info("received a message %s", frame.body) logger.info("received a message %s", frame.body)
link = msgspec.json.decode(frame.body, type=Link) link = msgspec.json.decode(frame.body, type=Link)
self.log.info("found link: %s", link.url) logger.info("found link: %s", link.url)
if __name__ == '__main__': if __name__ == '__main__':