Synchronize server startup
This prevents an edge case where the server begins processing inbound API / AP requests before any of the chart / management daemons are ready, potentially leading to incorrect chart statistics.
This commit is contained in:
@@ -68,7 +68,7 @@ export class ServerStatsService implements OnApplicationShutdown {
|
||||
if (log.length > 200) log.pop();
|
||||
};
|
||||
|
||||
tick();
|
||||
await tick();
|
||||
|
||||
this.intervalId = setInterval(tick, interval);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user