core: pm2 cluster management

This commit is contained in:
undefined committed 2021-09-09 06:18:16 +08:00
1 parent 9f5c00a985
commit 448c398d21
30 files changed
+206 -427

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ class Service {
async function loadAccounts() {
// Only start a single daemon
if (!global.Hydro.isFirstWorker) return;
if (process.env.NODE_APP_INSTANCE !== '0') return;
const accounts = await coll.find().toArray();
for (const account of accounts) {
if (!providers[account.type]) continue;