From 7c86bfc18271124b372a2267647029b7218ffaca Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 13 Sep 2022 07:24:25 -0400 Subject: [PATCH] Island: Rename _handle_*_events() -> _subscribe_*_events() --- monkey/monkey_island/cc/setup/island_event_handlers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/monkey/monkey_island/cc/setup/island_event_handlers.py b/monkey/monkey_island/cc/setup/island_event_handlers.py index a4935fabd..ab3e856d6 100644 --- a/monkey/monkey_island/cc/setup/island_event_handlers.py +++ b/monkey/monkey_island/cc/setup/island_event_handlers.py @@ -10,11 +10,11 @@ from monkey_island.cc.services.database import Database def setup_island_event_handlers(container: DIContainer): island_event_queue = container.resolve(IIslandEventQueue) - _handle_reset_agent_configuration_events(island_event_queue, container) - _handle_clear_simulation_data_events(island_event_queue, container) + _subscribe_reset_agent_configuration_events(island_event_queue, container) + _subscribe_clear_simulation_data_events(island_event_queue, container) -def _handle_reset_agent_configuration_events( +def _subscribe_reset_agent_configuration_events( island_event_queue: IIslandEventQueue, container: DIContainer ): island_event_queue.subscribe( @@ -22,7 +22,7 @@ def _handle_reset_agent_configuration_events( ) -def _handle_clear_simulation_data_events( +def _subscribe_clear_simulation_data_events( island_event_queue: IIslandEventQueue, container: DIContainer ): legacy_database_reset = partial(Database.reset_db, reset_config=False)