refactor: make message service stateless

This commit is contained in:
Carlos Valente
2024-10-13 22:30:37 +02:00
committed by Carlos Valente
parent a4aa513d1f
commit 77e87e1d0c
3 changed files with 14 additions and 46 deletions
-3
View File
@@ -202,9 +202,6 @@ export const startServer = async (
// TODO: pass event store to rundownservice
runtimeService.init(maybeRestorePoint);
// eventStore set is a dependency of the services that publish to it
messageService.init((key, value) => eventStore.set(key, value));
expressServer.listen(serverPort, '0.0.0.0', () => {
const nif = getNetworkInterfaces();
consoleSuccess(`Local: http://localhost:${serverPort}/editor`);