From c0a9a8cf4d37efcd9383f28ec063e6cff309eb03 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 10 Aug 2022 09:18:25 -0400 Subject: [PATCH] Common: Rename _publish_to_tags_topic{,s}() --- monkey/common/event_queue/pypubsub_event_queue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/common/event_queue/pypubsub_event_queue.py b/monkey/common/event_queue/pypubsub_event_queue.py index d2b1aa5f5..5813cec3c 100644 --- a/monkey/common/event_queue/pypubsub_event_queue.py +++ b/monkey/common/event_queue/pypubsub_event_queue.py @@ -30,7 +30,7 @@ class PyPubSubEventQueue(IEventQueue): def publish(self, event: AbstractEvent): self._publish_to_all_events_topic(event) self._publish_to_type_topic(event) - self._publish_to_tags_topic(event) + self._publish_to_tags_topics(event) def _publish_to_all_events_topic(self, event: AbstractEvent): self._pypubsub_publisher.sendMessage(_INTERNAL_ALL_EVENT_TYPES_TOPIC, event=event) @@ -38,6 +38,6 @@ class PyPubSubEventQueue(IEventQueue): def _publish_to_type_topic(self, event: AbstractEvent): self._pypubsub_publisher.sendMessage(event.__name__, event=event) - def _publish_to_tags_topic(self, event: AbstractEvent): + def _publish_to_tags_topics(self, event: AbstractEvent): for tag in event.tags: self._pypubsub_publisher.sendMessage(tag, event=event)