From 1bd3285679a68a3b358be816592a332f57f61210 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 24 Jul 2024 09:37:29 -0600 Subject: [PATCH] Use pickle for config objects (#12594) --- frigate/comms/config_updater.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/comms/config_updater.py b/frigate/comms/config_updater.py index 6b35b149e..273103911 100644 --- a/frigate/comms/config_updater.py +++ b/frigate/comms/config_updater.py @@ -21,7 +21,7 @@ class ConfigPublisher: def publish(self, topic: str, payload: any) -> None: """There is no communication back to the processes.""" self.socket.send_string(topic, flags=zmq.SNDMORE) - self.socket.send_json(payload) + self.socket.send_pyobj(payload) def stop(self) -> None: self.stop_event.set() @@ -42,7 +42,7 @@ class ConfigSubscriber: """Returns updated config or None if no update.""" try: topic = self.socket.recv_string(flags=zmq.NOBLOCK) - return (topic, self.socket.recv_json()) + return (topic, self.socket.recv_pyobj()) except zmq.ZMQError: return (None, None)