Island: Use interface instead of concrete in island_event_handlers

This commit is contained in:
Mike Salvatore 2022-09-12 13:45:21 -04:00 committed by Ilija Lazoroski
parent ba724db969
commit 7f29e0342d
1 changed files with 2 additions and 2 deletions

View File

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