cluster: removed unused addressType argument from constructor · nodejs/node@4035cbe · GitHub
Skip to content

Commit 4035cbe

Browse files
yashLadhaBethGriggs
authored andcommitted
cluster: removed unused addressType argument from constructor
When intializing the constructor for cluster master we are heavily using a generic structure, but the effect of passing arguments that are related to shared_handle is that there is a stale argument passed. We can avoid such scenarios as all the remaining entities are being destructured from the message object. PR-URL: #32963 Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
1 parent 23eda41 commit 4035cbe

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

lib/internal/cluster/master.js

Lines changed: 1 addition & 6 deletions

lib/internal/cluster/round_robin_handle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { constants } = internalBinding('tcp_wrap');
1313

1414
module.exports = RoundRobinHandle;
1515

16-
function RoundRobinHandle(key, address, port, addressType, fd, flags) {
16+
function RoundRobinHandle(key, address, { port, fd, flags }) {
1717
this.key = key;
1818
this.all = new Map();
1919
this.free = new Map();

lib/internal/cluster/shared_handle.js

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)