Skip to content

Commit

Permalink
disableClusteringを有効にしているとNestインスタンスが無駄に複数立ち上がるのを修正 (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
adzukimame authored Dec 1, 2024
1 parent b10f9db commit bb211c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/boot/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if (cluster.isPrimary || envOption.disableClustering) {
}
}

if (cluster.isWorker || envOption.disableClustering) {
if (cluster.isWorker) {
await workerMain();
}

Expand Down

0 comments on commit bb211c2

Please sign in to comment.