GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cluster: move handle tracking out of utils · nodejs/node@54ca0e1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/cluster
    • master.js
    • utils.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/cluster/master.js‎

Copy file name to clipboardExpand all lines: lib/internal/cluster/master.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const EventEmitter = require('events');
77
const RoundRobinHandle = require('internal/cluster/round_robin_handle');
88
const SharedHandle = require('internal/cluster/shared_handle');
99
const Worker = require('internal/cluster/worker');
10-
const { internal, sendHelper, handles } = require('internal/cluster/utils');
10+
const { internal, sendHelper } = require('internal/cluster/utils');
1111
const { ERR_SOCKET_BAD_PORT } = require('internal/errors').codes;
1212
const keys = Object.keys;
1313
const cluster = new EventEmitter();
@@ -19,6 +19,7 @@ const [ minPort, maxPort ] = [ 1024, 65535 ];
1919

2020
module.exports = cluster;
2121

22+
const handles = new Map();
2223
cluster.isWorker = false;
2324
cluster.isMaster = true;
2425
cluster.Worker = Worker;
Collapse file

‎lib/internal/cluster/utils.js‎

Copy file name to clipboardExpand all lines: lib/internal/cluster/utils.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ const util = require('util');
33

44
module.exports = {
55
sendHelper,
6-
internal,
7-
handles: new Map() // Used in tests.
6+
internal
87
};
98

109
const callbacks = new Map();

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.