@@ -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 ] ;
@@ -270,7 +270,7 @@ function queryServer(worker, message) {
270
270
271
271
const key = `${ message . address } :${ message . port } :${ message . addressType } :` +
272
272
`${ message . fd } :${ message . index } ` ;
273
- var handle = handles . get ( key ) ;
273
+ let handle = handles . get ( key ) ;
274
274
275
275
if ( handle === undefined ) {
276
276
let address = message . address ;
@@ -285,7 +285,7 @@ function queryServer(worker, message) {
285
285
address = message . address ;
286
286
}
287
287
288
- var constructor = RoundRobinHandle ;
288
+ let constructor = RoundRobinHandle ;
289
289
// UDP is exempt from round-robin connection balancing for what should
290
290
// be obvious reasons: it's connectionless. There is nothing to send to
291
291
// the workers except raw datagrams and that's pointless.
0 commit comments