Common: Rename _publish_to_tags_topic{,s}()

This commit is contained in:
Mike Salvatore 2022-08-10 09:18:25 -04:00
parent c26c7403a6
commit c0a9a8cf4d
1 changed files with 2 additions and 2 deletions

View File

@ -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)