From 7f29e0342dc72323563f3e4773f783b905b7219e Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 12 Sep 2022 13:45:21 -0400 Subject: [PATCH] Island: Use interface instead of concrete in island_event_handlers --- monkey/monkey_island/cc/setup/island_event_handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/setup/island_event_handlers.py b/monkey/monkey_island/cc/setup/island_event_handlers.py index 0fcf2febc..9df1df752 100644 --- a/monkey/monkey_island/cc/setup/island_event_handlers.py +++ b/monkey/monkey_island/cc/setup/island_event_handlers.py @@ -1,10 +1,10 @@ from common import DIContainer -from monkey_island.cc.event_queue import IslandEventTopic, PyPubSubIslandEventQueue +from monkey_island.cc.event_queue import IIslandEventQueue, IslandEventTopic from monkey_island.cc.island_event_handlers import reset_agent_configuration def setup_island_event_handlers(container: DIContainer): - event_queue = container.resolve(PyPubSubIslandEventQueue) + event_queue = container.resolve(IIslandEventQueue) event_queue.subscribe( IslandEventTopic.RESET_AGENT_CONFIGURATION, container.resolve(reset_agent_configuration)