From 9475c86fba8a1dc9a997846298cad7373582961d Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 13 Sep 2022 12:49:54 +0530 Subject: [PATCH] Agent: Rename `push_all_events_to_island` -> `send_all_events_to_island` for consistency --- monkey/infection_monkey/push_events_to_island.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/push_events_to_island.py b/monkey/infection_monkey/push_events_to_island.py index 8828b2ca4..62f7c7ac2 100644 --- a/monkey/infection_monkey/push_events_to_island.py +++ b/monkey/infection_monkey/push_events_to_island.py @@ -18,7 +18,7 @@ DEFAULT_TIME_PERIOD = 5 WAKES_PER_PERIOD = 4 -class push_all_events_to_island: +class send_all_events_to_island: def __init__(self, server_address: str): self._server_address = server_address self._queue: queue.Queue[AbstractAgentEvent] = queue.Queue() @@ -32,7 +32,7 @@ class push_all_events_to_island: topic_name = topic.getName() self._queue.put(self._serialize_event(event, topic_name)) - logger.debug(f"Pushing event of type {topic_name} to the Island at {self._server_address}") + logger.debug(f"Sending event of type {topic_name} to the Island at {self._server_address}") def _serialize_event(self, event: AbstractAgentEvent, topic_name: str): pass