Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOSIP-24522 #241

Merged
8 changes: 5 additions & 3 deletions hub/start_hub.bal
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@ public function main() returns error? {
log:printInfo("found all metadata topics in kafka");
}
}
// Initialize the Hub
_ = @strand {thread: "any"} start syncRegsisteredTopicsCache();
_ = @strand {thread: "any"} start syncSubscribersCache();

boolean|error validConfigs = validateConfigs();
if validConfigs is error {
return validConfigs;
}

// Initialize the Hub
_ = @strand {thread: "any"} start syncRegsisteredTopicsCache();
_ = @strand {thread: "any"} start syncSubscribersCache();

// Start the Hub
http:Listener httpListener = check new (config:HUB_PORT);
check httpListener.attach(healthCheckService, "hub/actuator/health");
Expand Down
Loading