Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: add comment
  • Loading branch information
BridgeAR committed Jul 18, 2017
commit 34732c6076db438f2fdb026aada95e0b5ba05165
3 changes: 2 additions & 1 deletion lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const nextTick = require('internal/process/next_tick').nextTick;
const errors = require('internal/errors');
const dns = require('dns');

// Lazily loaded
// `cluster` is only used by `listenInCluster` so for startup performance
// reasons it's lazy loaded.
var cluster = null;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could probably be required up front as well but cluster is likely not required in many places that use net and therefore I kept it as is.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So could you document that:

// `cluster` is only used by `listenInCluster` so for startup performance
// reasons it's lazy loaded.


const errnoException = util._errnoException;
Expand Down