From 558e6602688d180fccf546b3e3fc846572bbddd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Thu, 12 Jul 2018 14:58:31 +0200 Subject: [PATCH] Use ServerUplinkConnetor.broadcast() instead of local helper --- lib/tfw/event_handler_base.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/tfw/event_handler_base.py b/lib/tfw/event_handler_base.py index 8771f35..aee4b93 100644 --- a/lib/tfw/event_handler_base.py +++ b/lib/tfw/event_handler_base.py @@ -131,16 +131,9 @@ class BroadcastingEventHandler(EventHandlerBase, ABC): response = self.dispatch_handling(message) if response: self.own_message_hashes.append(self.hash_message(response)) - self.server_connector.send(self.make_broadcast_message(response)) + self.server_connector.broadcast(response) @staticmethod def hash_message(message): message_bytes = dumps(message, sort_keys=True).encode() return md5(message_bytes).hexdigest() - - @staticmethod - def make_broadcast_message(message): - return { - 'key': 'broadcast', - 'data': message - }