From 1a09f26fd9d16f86258802821fde319d1690ac6b Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 6 Sep 2022 18:07:25 +0530 Subject: [PATCH] Common: Modify IslandEventTopic enum to not have values --- monkey/common/event_queue/i_island_event_queue.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/monkey/common/event_queue/i_island_event_queue.py b/monkey/common/event_queue/i_island_event_queue.py index c8e5115a9..f5e8ea5c3 100644 --- a/monkey/common/event_queue/i_island_event_queue.py +++ b/monkey/common/event_queue/i_island_event_queue.py @@ -4,11 +4,9 @@ from typing import Any from . import IslandEventSubscriber - -class IslandEventTopic(Enum): - AGENT_CONNECTED = "agent_connected" - CLEAR_SIMULATION_DATA = "clear_simulation_data" - RESET_AGENT_CONFIGURATION = "reset_agent_configuration" +IslandEventTopic = Enum( + "IslandEventTopic", ["AGENT_CONNECTED", "CLEAR_SIMULATION_DATA", "RESET_AGENT_CONFIGURATION"] +) class IIslandEventQueue(ABC):