diff --git a/aries_cloudagent/core/util.py b/aries_cloudagent/core/util.py index d97a6cdac1..791f80c95d 100644 --- a/aries_cloudagent/core/util.py +++ b/aries_cloudagent/core/util.py @@ -3,8 +3,8 @@ import re -CORE_EVENT_PREFIX = "acapy::CORE::" -STARTUP_EVENT_TOPIC = CORE_EVENT_PREFIX + "STARTUP" +CORE_EVENT_PREFIX = "acapy::core::" +STARTUP_EVENT_TOPIC = CORE_EVENT_PREFIX + "startup" STARTUP_EVENT_PATTERN = re.compile(f"^{STARTUP_EVENT_TOPIC}?$") -SHUTDOWN_EVENT_TOPIC = CORE_EVENT_PREFIX + "SHUTDOWN" +SHUTDOWN_EVENT_TOPIC = CORE_EVENT_PREFIX + "shutdown" SHUTDOWN_EVENT_PATTERN = re.compile(f"^{SHUTDOWN_EVENT_TOPIC}?$") diff --git a/aries_cloudagent/protocols/endorse_transaction/v1_0/routes.py b/aries_cloudagent/protocols/endorse_transaction/v1_0/routes.py index 54aa2e091d..960c168818 100644 --- a/aries_cloudagent/protocols/endorse_transaction/v1_0/routes.py +++ b/aries_cloudagent/protocols/endorse_transaction/v1_0/routes.py @@ -705,12 +705,14 @@ def register_events(event_bus: EventBus): async def on_startup_event(profile: Profile, event: Event): """Handle any events we need to support.""" - print(">>> Received STARTUP event") + print(">>> TODO Received STARTUP event") + pass async def on_shutdown_event(profile: Profile, event: Event): """Handle any events we need to support.""" - print(">>> Received SHUTDOWN event") + print(">>> TODO Received SHUTDOWN event") + pass async def register(app: web.Application):