| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ const host = '::'; | |||
| 16 | 16 | const WORKER_ACCOUNT = 3; | |
| 17 | 17 | ||
| 18 | 18 | if (cluster.isMaster) { | |
| 19 | - const workers = new Map(); | ||
| 19 | + const workers = []; | ||
| 20 | 20 | ||
| 21 | 21 | const countdown = new Countdown(WORKER_ACCOUNT, () => { | |
| 22 | 22 | // Make sure the `ipv6Only` option works. This is the part of the test that | |
@@ -46,7 +46,7 @@ if (cluster.isMaster) { | |||
| 46 | 46 | countdown.dec(); | |
| 47 | 47 | })); | |
| 48 | 48 | ||
| 49 | - workers.set(i, worker); | ||
| 49 | + workers[i] = worker; | ||
| 50 | 50 | } | |
| 51 | 51 | } else { | |
| 52 | 52 | net.createServer().listen({ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ const host = '::'; | |||
| 16 | 16 | const WORKER_ACCOUNT = 3; | |
| 17 | 17 | ||
| 18 | 18 | if (cluster.isMaster) { | |
| 19 | - const workers = new Map(); | ||
| 19 | + const workers = []; | ||
| 20 | 20 | let address; | |
| 21 | 21 | ||
| 22 | 22 | const countdown = new Countdown(WORKER_ACCOUNT, () => { | |
@@ -45,7 +45,7 @@ if (cluster.isMaster) { | |||
| 45 | 45 | countdown.dec(); | |
| 46 | 46 | })); | |
| 47 | 47 | ||
| 48 | - workers.set(i, worker); | ||
| 48 | + workers[i] = worker; | ||
| 49 | 49 | } | |
| 50 | 50 | } else { | |
| 51 | 51 | // As the cluster member has the potential to grab any port | |
| Back | FazBrowse Home | New Git URL |
0 commit comments