Make sure to wait for all mining pools queries before continuing
This commit is contained in:
parent
87175869dd
commit
1322298a06
@ -135,9 +135,9 @@ class PoolsParser {
|
|||||||
if (finalPoolDataAdd.length > 0) {
|
if (finalPoolDataAdd.length > 0) {
|
||||||
await connection.query<any>({ sql: queryAdd, timeout: 120000 });
|
await connection.query<any>({ sql: queryAdd, timeout: 120000 });
|
||||||
}
|
}
|
||||||
updateQueries.forEach(async query => {
|
for (const query of updateQueries) {
|
||||||
await connection.query<any>({ sql: query, timeout: 120000 });
|
await connection.query<any>({ sql: query, timeout: 120000 });
|
||||||
});
|
}
|
||||||
await this.insertUnknownPool();
|
await this.insertUnknownPool();
|
||||||
connection.release();
|
connection.release();
|
||||||
logger.info('Mining pools.json import completed');
|
logger.info('Mining pools.json import completed');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user