mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 21:32:55 +01:00
Wait for database connection established before continuing startup.
refs #315
This commit is contained in:
parent
54a276439d
commit
21d32dec41
@ -61,7 +61,7 @@ class Server {
|
||||
}
|
||||
}
|
||||
|
||||
startServer(worker = false) {
|
||||
async startServer(worker = false) {
|
||||
logger.debug(`Starting Mempool Server${worker ? ' (worker)' : ''}... (${backendInfo.getShortCommitHash()})`);
|
||||
|
||||
this.app
|
||||
@ -78,7 +78,7 @@ class Server {
|
||||
diskCache.loadMempoolCache();
|
||||
|
||||
if (config.DATABASE.ENABLED) {
|
||||
checkDbConnection();
|
||||
await checkDbConnection();
|
||||
}
|
||||
|
||||
if (config.STATISTICS.ENABLED && config.DATABASE.ENABLED) {
|
||||
|
Loading…
Reference in New Issue
Block a user