From 3c79009cce4fc3a4ad9996a16d896faa00674844 Mon Sep 17 00:00:00 2001 From: ayeshLK Date: Fri, 12 Jul 2024 15:28:29 +0530 Subject: [PATCH] Fix issue with Hub listener not starting properly --- load-tests/in_memory_hub/src/start_hub.bal | 2 ++ 1 file changed, 2 insertions(+) diff --git a/load-tests/in_memory_hub/src/start_hub.bal b/load-tests/in_memory_hub/src/start_hub.bal index c2da2150..255103f3 100644 --- a/load-tests/in_memory_hub/src/start_hub.bal +++ b/load-tests/in_memory_hub/src/start_hub.bal @@ -16,6 +16,7 @@ import ballerina/websubhub; import in_memory_hub.dispatcher; +import ballerina/lang.runtime; public function main() returns error? { // Initialize the Hub @@ -24,4 +25,5 @@ public function main() returns error? { websubhub:Listener hubListener = check new(9090); check hubListener.attach(hubService, "hub"); check hubListener.'start(); + runtime:registerListener(hubListener); }