| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0b64e45 commit d194c0f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,12 +29,12 @@ cluster.settings = {}; | |||
| 29 | 29 | cluster.SCHED_NONE = SCHED_NONE; // Leave it to the operating system. | |
| 30 | 30 | cluster.SCHED_RR = SCHED_RR; // Master distributes connections. | |
| 31 | 31 | ||
| 32 | - var ids = 0; | ||
| 33 | - var debugPortOffset = 1; | ||
| 34 | - var initialized = false; | ||
| 32 | + let ids = 0; | ||
| 33 | + let debugPortOffset = 1; | ||
| 34 | + let initialized = false; | ||
| 35 | 35 | ||
| 36 | 36 | // XXX(bnoordhuis) Fold cluster.schedulingPolicy into cluster.settings? | |
| 37 | - var schedulingPolicy = { | ||
| 37 | + let schedulingPolicy = { | ||
| 38 | 38 | 'none': SCHED_NONE, | |
| 39 | 39 | 'rr': SCHED_RR | |
| 40 | 40 | }[process.env.NODE_CLUSTER_SCHED_POLICY]; | |
@@ -271,7 +271,7 @@ function queryServer(worker, message) { | |||
| 271 | 271 | ||
| 272 | 272 | const key = `${message.address}:${message.port}:${message.addressType}:` + | |
| 273 | 273 | `${message.fd}:${message.index}`; | |
| 274 | - var handle = handles.get(key); | ||
| 274 | + let handle = handles.get(key); | ||
| 275 | 275 | ||
| 276 | 276 | if (handle === undefined) { | |
| 277 | 277 | let address = message.address; | |
@@ -286,7 +286,7 @@ function queryServer(worker, message) { | |||
| 286 | 286 | address = message.address; | |
| 287 | 287 | } | |
| 288 | 288 | ||
| 289 | - var constructor = RoundRobinHandle; | ||
| 289 | + let constructor = RoundRobinHandle; | ||
| 290 | 290 | // UDP is exempt from round-robin connection balancing for what should | |
| 291 | 291 | // be obvious reasons: it's connectionless. There is nothing to send to | |
| 292 | 292 | // the workers except raw datagrams and that's pointless. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments