mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
2f885e7a43
This commit splits the existing cluster module into several internal modules. More specifically, the cluster master and worker implementations are separated, and the various data structures are separated. PR-URL: https://github.com/nodejs/node/pull/10746 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
6 lines
176 B
JavaScript
6 lines
176 B
JavaScript
'use strict';
|
|
|
|
module.exports = ('NODE_UNIQUE_ID' in process.env) ?
|
|
require('internal/cluster/child') :
|
|
require('internal/cluster/master');
|