Skip to content

Commit

Permalink
Fix issue with Hub listener not starting properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Jul 12, 2024
1 parent 4566676 commit 3c79009
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions load-tests/in_memory_hub/src/start_hub.bal
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import ballerina/websubhub;
import in_memory_hub.dispatcher;
import ballerina/lang.runtime;

public function main() returns error? {
// Initialize the Hub
Expand All @@ -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);
}

0 comments on commit 3c79009

Please sign in to comment.